HYPNO: correctly parse complete wetlands missions

This commit is contained in:
neuromancer 2021-10-21 20:08:35 +02:00 committed by Eugene Sandulenko
parent 28e84c94e5
commit dc1e09f15c

View file

@ -42,9 +42,10 @@ bool LibFile::open(const Common::String &prefix, const Common::String &filename,
while (offset < libfile.size()) { while (offset < libfile.size()) {
byte b; byte b;
uint32 size = 0; uint32 size = 0;
uint32 start = 0; uint32 start = libfile.size();
FileEntry f; FileEntry f;
libfile.seek(offset); libfile.seek(offset);
debugC(1, kHypnoDebugParser, "parsing at offset %d", offset);
while (true) { while (true) {
f.name = ""; f.name = "";
f.data.clear(); f.data.clear();