temp fix and small refactor

This commit is contained in:
2020-09-17 21:41:09 -05:00
parent 22e3e9e4de
commit 31ef03610d
3 changed files with 9 additions and 11 deletions

View File

@@ -96,6 +96,9 @@ void PlayerManager::removePlayerFromChunks(std::vector<Chunk*> chunks, CNSocket*
exitPlayer.iID = players[otherSock].plr->iID;
sock->sendPacket((void*)&exitPlayer, P_FE2CL_PC_EXIT, sizeof(sP_FE2CL_PC_EXIT));
}
// temp-fix for weird edgecase
chunk->players.erase(sock);
}
}