Check if otherPlr is null in nanoRecallHandler()

This commit is contained in:
dongresource 2020-12-26 20:09:33 +01:00
parent 7985fc475b
commit afea9f436f

View File

@ -189,6 +189,8 @@ void NanoManager::nanoRecallHandler(CNSocket* sock, CNPacketData* data) {
Player* plr = PlayerManager::getPlayer(sock);
Player* otherPlr = PlayerManager::getPlayerFromID(recallData->iGroupMemberID);
if (otherPlr == nullptr)
return;
if ((int32_t)plr->instanceID == otherPlr->recallInstance)
PlayerManager::sendPlayerTo(sock, otherPlr->recallX, otherPlr->recallY, otherPlr->recallZ, otherPlr->recallInstance);