[Scummvm-git-logs] scummvm master -> cfcf4e4559afeeb21cee13acd59929920e614948
moralrecordings
code at moral.net.au
Wed May 6 16:57:15 UTC 2020
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:
cfcf4e4559 DIRECTOR: Skip over empty entries in the CAS list
Commit: cfcf4e4559afeeb21cee13acd59929920e614948
https://github.com/scummvm/scummvm/commit/cfcf4e4559afeeb21cee13acd59929920e614948
Author: Scott Percival (code at moral.net.au)
Date: 2020-05-07T00:56:32+08:00
Commit Message:
DIRECTOR: Skip over empty entries in the CAS list
Changed paths:
engines/director/archive.cpp
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp
index d700aae890..aeea74ccb0 100644
--- a/engines/director/archive.cpp
+++ b/engines/director/archive.cpp
@@ -531,6 +531,9 @@ bool RIFXArchive::openStream(Common::SeekableReadStream *stream, uint32 startOff
uint32 index = casStream.readUint32BE();
debugCN(2, kDebugLoading, "%d ", index);
+ if (index == 0) {
+ continue;
+ }
Resource &res = resources[index];
res.index = index;
res.castId = i;
More information about the Scummvm-git-logs
mailing list