[Scummvm-git-logs] scummvm master -> fe628415613eee227d66b62766ae81e21fc95efb

dreammaster paulfgilbert at gmail.com
Sat Aug 17 07:18:36 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
fe62841561 GLK: FROTZ: Workaround Shogun Blorb having a 0 size apal chunk


Commit: fe628415613eee227d66b62766ae81e21fc95efb
    https://github.com/scummvm/scummvm/commit/fe628415613eee227d66b62766ae81e21fc95efb
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-08-16T22:18:27-07:00

Commit Message:
GLK: FROTZ: Workaround Shogun Blorb having a 0 size apal chunk

Changed paths:
    engines/glk/blorb.cpp


diff --git a/engines/glk/blorb.cpp b/engines/glk/blorb.cpp
index b97ee31..36360c3 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";





More information about the Scummvm-git-logs mailing list