mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
Fix crash when a player leaves in NetPlay.
The player ID was being written as int and read as PlayerId (u8).
This commit is contained in:
parent
229b35bb6d
commit
80b14e80b5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user