Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
f0a856d9c8
  1. 2
      engine/server/sv_game.c

2
engine/server/sv_game.c

@ -2673,7 +2673,7 @@ void GAME_EXPORT pfnMessageEnd( void ) @@ -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 )

Loading…
Cancel
Save