2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-01 01:25:38 +03:00

Fixed MSG_WriteBitString (bug with non-ASCII chars) (#150)

This commit is contained in:
WPMGPRoSToTeMa 2016-02-02 05:44:43 +03:00
parent b25b18dfb4
commit 22507f6b8a

View File

@ -674,7 +674,11 @@ void MSG_WriteSBits(int data, int numbits)
void MSG_WriteBitString(const char *p)
{
#ifdef REHLDS_FIXES
const uint8_t *pch = (uint8_t *)p;
#else // REHLDS_FIXES
char *pch = (char *)p;
#endif // REHLDS_FIXES
while (*pch)
{