2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-27 12:29:53 +01:00

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;
}
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 )