mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Fix regression with disconnected player on Skyway agent.
This commit is contained in:
parent
543d0a7afd
commit
1ca8094628
@ -218,14 +218,14 @@ void TransportManager::stepSkywaySystem() {
|
|||||||
|
|
||||||
std::queue<WarpLocation>* queue = &it->second;
|
std::queue<WarpLocation>* queue = &it->second;
|
||||||
|
|
||||||
Player* plr = PlayerManager::getPlayer(it->first);
|
if (PlayerManager::players.find(it->first) == PlayerManager::players.end()) {
|
||||||
|
|
||||||
if (plr == nullptr) {
|
|
||||||
// pluck out dead socket + update iterator
|
// pluck out dead socket + update iterator
|
||||||
it = SkywayQueues.erase(it);
|
it = SkywayQueues.erase(it);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Player* plr = PlayerManager::getPlayer(it->first);
|
||||||
|
|
||||||
if (queue->empty()) {
|
if (queue->empty()) {
|
||||||
// send dismount packet
|
// send dismount packet
|
||||||
INITSTRUCT(sP_FE2CL_REP_PC_RIDING_SUCC, rideSucc);
|
INITSTRUCT(sP_FE2CL_REP_PC_RIDING_SUCC, rideSucc);
|
||||||
|
Loading…
Reference in New Issue
Block a user