mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 23:31:57 +00:00
GLK: FROTZ: Workaround Shogun Blorb having a 0 size apal chunk
This commit is contained in:
parent
c9811e279a
commit
fe62841561
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user