From 3bbeee90c02e613ab2fcf870a26dbcfb3aad60e1 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 7 Apr 2011 00:26:27 +0200 Subject: MOHAWK: Handle alignment byte for some targeting modes. --- engines/mohawk/livingbooks.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/mohawk') 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) { -- cgit v1.2.3