From f0a856d9c84b4b99d7228c461ae87a0b64d49ff9 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 26 Jun 2022 15:05:06 +0300 Subject: [PATCH] engine: server: fix writing message size for engine messages, as it's expected to be 2-bytes --- engine/server/sv_game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_game.c b/engine/server/sv_game.c index 588bc7d8..d7343fb0 100644 --- a/engine/server/sv_game.c +++ b/engine/server/sv_game.c @@ -2673,7 +2673,7 @@ void GAME_EXPORT pfnMessageEnd( void ) return; } - sv.multicast.pData[svgame.msg_size_index] = svgame.msg_realsize; + *(word *)&sv.multicast.pData[svgame.msg_size_index] = svgame.msg_realsize; } } else if( svgame.msg[svgame.msg_index].size != -1 )