mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06: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:
@ -241,7 +241,7 @@ unsigned int NetPlayServer::OnDisconnect(sf::SocketTCP& socket)
|
|||||||
SendToClients(spac);
|
SendToClients(spac);
|
||||||
}
|
}
|
||||||
|
|
||||||
int pid = m_players[socket].pid;
|
PlayerId pid = m_players[socket].pid;
|
||||||
|
|
||||||
sf::Packet spac;
|
sf::Packet spac;
|
||||||
spac << (MessageId)NP_MSG_PLAYER_LEAVE;
|
spac << (MessageId)NP_MSG_PLAYER_LEAVE;
|
||||||
|
Reference in New Issue
Block a user