From fe628415613eee227d66b62766ae81e21fc95efb Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 16 Aug 2019 22:18:27 -0700 Subject: GLK: FROTZ: Workaround Shogun Blorb having a 0 size apal chunk --- engines/glk/blorb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/glk/blorb.cpp') diff --git a/engines/glk/blorb.cpp b/engines/glk/blorb.cpp index b97ee319c7..36360c3842 100644 --- a/engines/glk/blorb.cpp +++ b/engines/glk/blorb.cpp @@ -167,7 +167,7 @@ Common::ErrorCode Blorb::load() { uint chunkId = f.readUint32BE(); uint chunkSize = f.readUint32BE(); - if (chunkId == ID_APal) { + if (chunkId == ID_APal && chunkSize > 0) { // Found one, so create an entry so it can be opened as file named "apal" ChunkEntry ce; ce._filename = "apal"; -- cgit v1.2.3