Stop iterating in exitDuplicate() after having removed a player

This fixes a crash due to the invalidated iterator continuing to loop.
It should be safe to assume there's only ever one duplicate/stale player.

Also updated tdata.
This commit is contained in:
2020-12-08 01:53:21 +01:00
parent a48fb3a8e8
commit 811c9d4d5c
2 changed files with 2 additions and 1 deletions

View File

@@ -918,6 +918,7 @@ void PlayerManager::exitDuplicate(int accountId) {
sock->kill();
CNShardServer::_killConnection(sock);
break;
}
}
}