diff options
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 5 |
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) { |