mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-20 21:45:43 +00:00
Copy fix from cod2rev
This commit is contained in:
parent
59e57d05f7
commit
65cf78a61f
@ -67,11 +67,18 @@ namespace codsrc
|
||||
{
|
||||
int len;
|
||||
|
||||
for ( len = refString->u.s.byteLen - 1;
|
||||
refString->str[len];
|
||||
len += 256 )
|
||||
if (!refString->u.s.byteLen)
|
||||
{
|
||||
;
|
||||
len = 256 - 1; //Bugfix for 256 % 256 = 0 or 512 % 256 = 0 or... Just promote it to 256
|
||||
}
|
||||
else
|
||||
{
|
||||
len = refString->u.s.byteLen - 1;
|
||||
}
|
||||
|
||||
while (refString->str[len])
|
||||
{
|
||||
len += 256;
|
||||
}
|
||||
|
||||
return len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user