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

Merge pull request #151 from WPMGPRoSToTeMa/fixwritebitstring

Fixed MSG_WriteBitString (bug with non-ASCII chars) (#150)
This commit is contained in:
theAsmodai 2016-02-02 14:03:53 +03:00
commit f6cbc6de5e

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)
{