Fix regression with disconnected player on Skyway agent.

This commit is contained in:
Gent S 2020-12-03 15:33:14 -05:00
parent 543d0a7afd
commit 1ca8094628

View File

@ -218,14 +218,14 @@ void TransportManager::stepSkywaySystem() {
std::queue<WarpLocation>* queue = &it->second;
Player* plr = PlayerManager::getPlayer(it->first);
if (plr == nullptr) {
if (PlayerManager::players.find(it->first) == PlayerManager::players.end()) {
// pluck out dead socket + update iterator
it = SkywayQueues.erase(it);
continue;
}
Player* plr = PlayerManager::getPlayer(it->first);
if (queue->empty()) {
// send dismount packet
INITSTRUCT(sP_FE2CL_REP_PC_RIDING_SUCC, rideSucc);