mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fixed erroneus handling of many players with no peer existing at same time
This commit is contained in:
parent
1986326731
commit
b6787a2b58
2 changed files with 4 additions and 1 deletions
|
@ -194,7 +194,8 @@ void Environment::addPlayer(Player *player)
|
|||
#ifndef SERVER
|
||||
assert(player->isLocal() == false || getLocalPlayer() == NULL);
|
||||
#endif
|
||||
assert(getPlayer(player->peer_id) == NULL);
|
||||
if(player->peer_id != 0)
|
||||
assert(getPlayer(player->peer_id) == NULL);
|
||||
m_players.push_back(player);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue