1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

small fixes here and there

This commit is contained in:
Perttu Ahola 2011-01-24 01:58:15 +02:00
parent f081924670
commit 4a952f22d7
5 changed files with 31 additions and 46 deletions

View file

@ -3406,7 +3406,8 @@ void Server::handlePeerChange(PeerChange &c)
// Set player client disconnected
{
Player *player = m_env.getPlayer(c.peer_id);
player->peer_id = 0;
if(player != NULL)
player->peer_id = 0;
}
// Delete client