2
0
Fork 0
mirror of https://github.com/rehlds/ReHLDS.git synced 2025-08-12 09:39:35 +03:00

Merge pull request from WPMGPRoSToTeMa/fixwritebitstring

Fixed MSG_WriteBitString (bug with non-ASCII chars) ()
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) void MSG_WriteBitString(const char *p)
{ {
#ifdef REHLDS_FIXES
const uint8_t *pch = (uint8_t *)p;
#else // REHLDS_FIXES
char *pch = (char *)p; char *pch = (char *)p;
#endif // REHLDS_FIXES
while (*pch) while (*pch)
{ {