From 0fab64817fd027a8321e047c1007d0e7e9e135fc Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sat, 6 Oct 2007 21:15:53 +0000 Subject: Fixed bug #1808615. An unexpected (but harmless) 'ENDCOMMANDS' statement was spotted in the game scripts by the new stricter parser. svn-id: r29158 --- engines/parallaction/parser_ns.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines/parallaction/parser_ns.cpp') 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) "); -- cgit v1.2.3