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:
parent
f081924670
commit
4a952f22d7
5 changed files with 31 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue