diff --git a/dWorldServer/WorldServer.cpp b/dWorldServer/WorldServer.cpp index 58539cb0..79dce1bf 100644 --- a/dWorldServer/WorldServer.cpp +++ b/dWorldServer/WorldServer.cpp @@ -925,7 +925,7 @@ void HandlePacket(Packet* packet) { //We need to delete the entity first, otherwise the char list could delete it while it exists in the world! if (Game::server->GetZoneID() != 0) { auto user = UserManager::Instance()->GetUser(packet->systemAddress); - if (!user) return; + if (!user || !user->GetLastUsedChar()) return; Game::entityManager->DestroyEntity(user->GetLastUsedChar()->GetEntity()); }