Fix segfault when one client of many close with same user name
This commit is contained in:
parent
7c7b4a7088
commit
8ed2688095
@ -182,7 +182,8 @@ void Client::update(double elapsed_time)
|
||||
client_packet >> players_port;
|
||||
// Should be a much better way of doing this.
|
||||
// Perhaps generate a random number
|
||||
if(name == m_current_player_name)
|
||||
if((name == m_current_player_name) &&
|
||||
(players_port == m_net_client->getLocalPort()))
|
||||
{
|
||||
m_current_player = pindex;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user