Only reactivate player if it exists in the current game.

This commit is contained in:
lotodore
2011-12-26 17:21:35 +00:00
parent 210fc2eaa6
commit 8b356fb9dd
+4 -2
View File
@@ -1314,8 +1314,10 @@ ServerGameStateHand::ReactivatePlayers(boost::shared_ptr<ServerGame> server)
PlayerIdList::iterator end = reactivateIdList.end();
while (i != end) {
boost::shared_ptr<PlayerInterface> tmpPlayer(server->GetGame().getPlayerByUniqueId(*i));
tmpPlayer->markRemoteAction();
tmpPlayer->setIsSessionActive(true);
if (tmpPlayer) {
tmpPlayer->markRemoteAction();
tmpPlayer->setIsSessionActive(true);
}
++i;
}
}