diff options
author | Paul Gilbert | 2019-08-16 22:18:27 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-16 22:18:27 -0700 |
commit | fe628415613eee227d66b62766ae81e21fc95efb (patch) | |
tree | 990419af4097c61d2562ed1d23c4310d60cf7b09 | |
parent | c9811e279a6c5e88bb25ac7dbe4819f6386729ef (diff) | |
download | scummvm-rg350-fe628415613eee227d66b62766ae81e21fc95efb.tar.gz scummvm-rg350-fe628415613eee227d66b62766ae81e21fc95efb.tar.bz2 scummvm-rg350-fe628415613eee227d66b62766ae81e21fc95efb.zip |
GLK: FROTZ: Workaround Shogun Blorb having a 0 size apal chunk
-rw-r--r-- | engines/glk/blorb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |