From c2e75c4daaf52ca39aee60548ea2b0b092dfa7ec Mon Sep 17 00:00:00 2001 From: HeatXD <45072324+HeatXD@users.noreply.github.com> Date: Wed, 10 May 2023 04:11:03 +0200 Subject: [PATCH] Netplay HandleSessionMessage: fix err msg. --- src/core/netplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/netplay.cpp b/src/core/netplay.cpp index 78802ccc4..d32b5deab 100644 --- a/src/core/netplay.cpp +++ b/src/core/netplay.cpp @@ -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; }