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:
@@ -208,7 +208,9 @@ void
|
|||||||
ServerGameThread::InternalKickPlayer(unsigned playerId)
|
ServerGameThread::InternalKickPlayer(unsigned playerId)
|
||||||
{
|
{
|
||||||
SessionWrapper tmpSession = GetSessionManager().GetSessionByUniquePlayerId(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
|
PlayerDataList
|
||||||
|
|||||||
Reference in New Issue
Block a user