aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser_ns.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-10-06 21:15:53 +0000
committerNicola Mettifogo2007-10-06 21:15:53 +0000
commit0fab64817fd027a8321e047c1007d0e7e9e135fc (patch)
tree447c3de95e45f74da7a1ebb06ce736ad2cd6b47b /engines/parallaction/parser_ns.cpp
parent9280c25a3617d5a60257f11c3f6864ef4fff99dd (diff)
downloadscummvm-rg350-0fab64817fd027a8321e047c1007d0e7e9e135fc.tar.gz
scummvm-rg350-0fab64817fd027a8321e047c1007d0e7e9e135fc.tar.bz2
scummvm-rg350-0fab64817fd027a8321e047c1007d0e7e9e135fc.zip
Fixed bug #1808615. An unexpected (but harmless) 'ENDCOMMANDS' statement was spotted in the game scripts by the new stricter parser.
svn-id: r29158
Diffstat (limited to 'engines/parallaction/parser_ns.cpp')
-rw-r--r--engines/parallaction/parser_ns.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
index a834648291..41bd97e3b3 100644
--- a/engines/parallaction/parser_ns.cpp
+++ b/engines/parallaction/parser_ns.cpp
@@ -1136,7 +1136,8 @@ void Parallaction_ns::initParsers() {
ZONE_PARSER(commands),
ZONE_PARSER(label),
ZONE_PARSER(flags),
- ZONE_PARSER(endzone)
+ ZONE_PARSER(endzone),
+ ZONE_PARSER(null)
};
for (i = 0; i < ARRAYSIZE(op5); i++)
@@ -1190,6 +1191,10 @@ char *Parallaction_ns::parseComment(Script &script) {
return v194;
}
+DECLARE_ZONE_PARSER(null) {
+ debugC(7, kDebugParser, "ZONE_PARSER(null) ");
+}
+
DECLARE_ZONE_PARSER(invalid) {
debugC(7, kDebugParser, "ZONE_PARSER(invalid) ");