Quick fix of nasty server crash which occurs when kicking from within a game. Real fix of the problem will follow.

This commit is contained in:
lotodore
2007-11-10 21:23:22 +00:00
parent e796eb0980
commit c7ab731648
+3 -1
View File
@@ -208,7 +208,9 @@ void
ServerGameThread::InternalKickPlayer(unsigned playerId)
{
SessionWrapper tmpSession = GetSessionManager().GetSessionByUniquePlayerId(playerId);
MoveSessionToLobby(tmpSession, NTF_NET_REMOVED_KICKED);
// Only kick if the player was found.
if (tmpSession.sessionData.get())
MoveSessionToLobby(tmpSession, NTF_NET_REMOVED_KICKED);
}
PlayerDataList