aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2011-04-07 00:26:27 +0200
committerAlyssa Milburn2011-04-07 00:26:27 +0200
commit3bbeee90c02e613ab2fcf870a26dbcfb3aad60e1 (patch)
tree700f4f17f18057fc5aac1777a56e58d87ecc42a0 /engines
parent6d0bb19a51ac2996e8563f176ae2f2af1925369e (diff)
downloadscummvm-rg350-3bbeee90c02e613ab2fcf870a26dbcfb3aad60e1.tar.gz
scummvm-rg350-3bbeee90c02e613ab2fcf870a26dbcfb3aad60e1.tar.bz2
scummvm-rg350-3bbeee90c02e613ab2fcf870a26dbcfb3aad60e1.zip
MOHAWK: Handle alignment byte for some targeting modes.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/livingbooks.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 522d437889..3f53eae4b8 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -1931,6 +1931,11 @@ LBScriptEntry *LBItem::parseScriptEntry(uint16 type, uint16 &size, Common::Seeka
warning("ignoring target '%s' in script entry", target.c_str());
size -= target.size() + 1;
}
+
+ if (size % 2 == 1) {
+ stream->skip(1);
+ size--;
+ }
}
if (entry->argc) {