Netplay HandleSessionMessage: fix err msg.

This commit is contained in:
HeatXD 2023-05-10 04:11:03 +02:00
parent ddaa7172c8
commit c2e75c4daa
No known key found for this signature in database
GPG Key ID: BF30D71B2F1305C7
1 changed files with 2 additions and 2 deletions

View File

@ -1063,9 +1063,9 @@ void Netplay::HandleSynchronizeCompleteMessage(s32 player_id, const ENetPacket*
void Netplay::HandleSessionMessage(s32 player_id, const ENetPacket* pkt)
{
if (pkt->dataLength < sizeof(ControlMessageHeader))
if (pkt->dataLength < sizeof(SessionMessageHeader))
{
Log_ErrorPrintf("Invalid control packet from player %d of size %zu", player_id, pkt->dataLength);
Log_ErrorPrintf("Invalid session packet from player %d of size %zu", player_id, pkt->dataLength);
return;
}