From 80b14e80b55c2c2832ef5f38796719efebd9e7d0 Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 18 Sep 2013 23:21:30 -0400 Subject: [PATCH] Fix crash when a player leaves in NetPlay. The player ID was being written as int and read as PlayerId (u8). --- Source/Core/Core/Src/NetPlayServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/NetPlayServer.cpp b/Source/Core/Core/Src/NetPlayServer.cpp index f78bfe43ef..8ae560c212 100644 --- a/Source/Core/Core/Src/NetPlayServer.cpp +++ b/Source/Core/Core/Src/NetPlayServer.cpp @@ -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;