Fixed string getting cut off if the string had some symbols. The length of the string would not be the same as the bytes length.

This commit is contained in:
hondacrx
2018-01-04 18:28:13 -05:00
parent 552a793486
commit 796fcd9242
29 changed files with 185 additions and 157 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ namespace Game
case WardenCheckType.MPQ:
case WardenCheckType.LuaStr:
case WardenCheckType.Driver:
buffer.WriteUInt8(wd.Str.Length);
buffer.WriteUInt8(wd.Str.GetByteCount());
buffer.WriteString(wd.Str);
break;
default: