fixed erroneus handling of many players with no peer existing at same time
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user