aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/toon/script.h')
-rw-r--r--engines/toon/script.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/toon/script.h b/engines/toon/script.h
index 6c46238238..b6d28e1171 100644
--- a/engines/toon/script.h
+++ b/engines/toon/script.h
@@ -31,7 +31,6 @@
#include "common/func.h"
#include "common/iff_container.h"
-
// Based on Kyra script interpretor
namespace Toon {
@@ -88,9 +87,9 @@ public:
// Both lead to some problems in our IFF parser, either reading after the end
// of file or producing a "Chunk overread" error message. To work around this
// we need to adjust the size field properly.
- if (_formType == MKID_BE('EMC2'))
+ if (_formType == MKTAG('E','M','C','2'))
_formChunk.size -= 8;
- else if (_formType == MKID_BE('AVFS'))
+ else if (_formType == MKTAG('A','V','F','S'))
_formChunk.size += 4;
}
};