The MSG_ReadAngle and MSG_ReadHiresAngle functions do not handle situations in which nested read functions had "bad read", which can lead to incorrect result.
The solution is to check the results of MSG_ReadChar and MSG_ReadShort: if they returned -1, then leave the function with the result 0.
The text was updated successfully, but these errors were encountered:
The
MSG_ReadAngle
andMSG_ReadHiresAngle
functions do not handle situations in which nested read functions had "bad read", which can lead to incorrect result.The solution is to check the results of
MSG_ReadChar
andMSG_ReadShort
: if they returned -1, then leave the function with the result 0.The text was updated successfully, but these errors were encountered: