Modified SuperCardPro template so it doesn't try to read empty strings.

This commit is contained in:
2017-12-06 13:45:57 +00:00
parent ef67fa3f06
commit af17e970b3

3
SCP.bt
View File

@@ -124,6 +124,9 @@ local long footerPosition = 0;
wstring ReadPStringUTF8(uint pos)
{
if(pos == 0)
return "";
FSeek(pos);
ushort strLen = ReadUShort();
char str[] = ReadString(pos + 2, strLen);