Only reactivate player if it exists in the current game.
This commit is contained in:
1 parent
210fc2eaa6
commit
8b356fb9dd
1 file changed
+2
@@ -1314,8 +1314,10 @@ ServerGameStateHand::ReactivatePlayers(boost::shared_ptr<ServerGame> server)
|
|||||||
PlayerIdList::iterator end = reactivateIdList.end();
|
PlayerIdList::iterator end = reactivateIdList.end();
|
||||||
while (i != end) {
|
while (i != end) {
|
||||||
boost::shared_ptr<PlayerInterface> tmpPlayer(server->GetGame().getPlayerByUniqueId(*i));
|
boost::shared_ptr<PlayerInterface> tmpPlayer(server->GetGame().getPlayerByUniqueId(*i));
|
||||||
|
if (tmpPlayer) {
|
||||||
tmpPlayer->markRemoteAction();
|
tmpPlayer->markRemoteAction();
|
||||||
tmpPlayer->setIsSessionActive(true);
|
tmpPlayer->setIsSessionActive(true);
|
||||||
|
}
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user