aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2011-04-13 19:12:25 +0200
committerAlyssa Milburn2011-04-13 19:12:25 +0200
commit848b0d1b0be8719c8b690eb59a969821ab1a280d (patch)
tree55caef48f0e95f99379b18def0b942fbeb668439 /engines/mohawk/livingbooks.cpp
parent5c87136b5f045d5ddcaf534185fb2259264cbabd (diff)
downloadscummvm-rg350-848b0d1b0be8719c8b690eb59a969821ab1a280d.tar.gz
scummvm-rg350-848b0d1b0be8719c8b690eb59a969821ab1a280d.tar.bz2
scummvm-rg350-848b0d1b0be8719c8b690eb59a969821ab1a280d.zip
MOHAWK: Stupid padding fix.
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r--engines/mohawk/livingbooks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 556210cb43..7f6c3cc43a 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -1997,13 +1997,14 @@ LBScriptEntry *LBItem::parseScriptEntry(uint16 type, uint16 &size, Common::Seeka
debug(4, "%d targets with targeting type %04x", count, targetingType);
// FIXME: targeting by name
+ uint oldAlign = size % 2;
for (uint i = 0; i < count; i++) {
Common::String target = _vm->readString(stream);
warning("ignoring target '%s' in script entry", target.c_str());
size -= target.size() + 1;
}
- if (size % 2 == 1) {
+ if (size % 2 != oldAlign) {
stream->skip(1);
size--;
}