fixed socket reference bug

This commit is contained in:
2020-09-17 22:44:37 -05:00
parent 31ef03610d
commit 9f78735caa
4 changed files with 11 additions and 9 deletions

View File

@@ -137,6 +137,8 @@ void TransportManager::transportWarpHandler(CNSocket* sock, CNPacketData* data)
* same map tile you were already in, but we might as well force an NPC reload.
*/
PlayerView& plrv = PlayerManager::players[sock];
PlayerManager::removePlayerFromChunks(plrv.currentChunks, sock);
plrv.currentChunks.clear();
plrv.chunkPos = std::make_pair<int, int>(0, 0);