Don't modify gMAXITEM_READ when reading localized file (#198)

This commit is contained in:
Asdow
2023-08-04 14:25:35 +03:00
committed by GitHub
parent 52ccc7cc3c
commit 43c6943399
+6 -3
View File
@@ -1600,9 +1600,12 @@ BOOLEAN ReadInItemStats(STR fileName, BOOLEAN localizedVersion )
MemFree(lpcBuffer);
return FALSE;
}
// item read was x -> x+1 items
++gMAXITEMS_READ;
if (localizedTextOnly == false)
{
// item read was x -> x+1 items
++gMAXITEMS_READ;
}
MemFree(lpcBuffer);