Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash when a player leaves in NetPlay.
The player ID was being written as int and read as PlayerId (u8).
  • Loading branch information
comex committed Sep 22, 2013
1 parent 229b35b commit 80b14e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/Src/NetPlayServer.cpp
Expand Up @@ -241,7 +241,7 @@ unsigned int NetPlayServer::OnDisconnect(sf::SocketTCP& socket)
SendToClients(spac);
}

int pid = m_players[socket].pid;
PlayerId pid = m_players[socket].pid;

sf::Packet spac;
spac << (MessageId)NP_MSG_PLAYER_LEAVE;
Expand Down

0 comments on commit 80b14e8

Please sign in to comment.