engine: server: fix writing message size for engine messages, as it's expected to be 2-bytes

This commit is contained in:
Alibek Omarov 2022-06-26 15:05:06 +03:00
parent 85895c5311
commit f0a856d9c8

View File

@ -2673,7 +2673,7 @@ void GAME_EXPORT pfnMessageEnd( void )
return; 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 ) else if( svgame.msg[svgame.msg_index].size != -1 )