diff options
Diffstat (limited to 'engines/parallaction/location.cpp')
-rw-r--r-- | engines/parallaction/location.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/parallaction/location.cpp b/engines/parallaction/location.cpp index 177480927f..0bac727f88 100644 --- a/engines/parallaction/location.cpp +++ b/engines/parallaction/location.cpp @@ -165,20 +165,21 @@ void Parallaction::parseLocation(const char *filename) { _gfx->setFont(_labelFont); _hasLocationSound = false; - _locParseCtxt.end = false;; + _locParseCtxt.end = false; _locParseCtxt.script = script; _locParseCtxt.filename = filename; + pushParserTables(_locationParsers, _locationStmt); do { fillBuffers(*script, true); - int index = _locationStmt->lookup(_tokens[0]); - (this->*_locationParsers[index])(); + parseStatement(); } while (!_locParseCtxt.end); + popParserTables(); delete script; |