aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/script.cpp
diff options
context:
space:
mode:
authorĽubomír Remák2018-03-20 22:15:23 +0100
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commit7a081f0605f2282fdce907bedfc9cae55dc67ab7 (patch)
tree520e4fff4e6d582ab911f18d997d3f7048b22bee /engines/mutationofjb/script.cpp
parent1d84041508b3acaf7a47fde81e7e334c004507b8 (diff)
downloadscummvm-rg350-7a081f0605f2282fdce907bedfc9cae55dc67ab7.tar.gz
scummvm-rg350-7a081f0605f2282fdce907bedfc9cae55dc67ab7.tar.bz2
scummvm-rg350-7a081f0605f2282fdce907bedfc9cae55dc67ab7.zip
MUTATIONOFJB: Load local (room) scripts.
Diffstat (limited to 'engines/mutationofjb/script.cpp')
-rw-r--r--engines/mutationofjb/script.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mutationofjb/script.cpp b/engines/mutationofjb/script.cpp
index 95c2bdc7ca..3c34660402 100644
--- a/engines/mutationofjb/script.cpp
+++ b/engines/mutationofjb/script.cpp
@@ -130,6 +130,10 @@ bool Script::loadFromStream(Common::SeekableReadStream &stream) {
lastParser = currentParser;
}
+ for (CommandParser **parser = parsers; *parser; ++parser) {
+ (*parser)->finish(parseCtx);
+ }
+
for (ActionInfos::iterator it = parseCtx._actionInfos.begin(); it != parseCtx._actionInfos.end(); ++it) {
if (it->_action == ActionInfo::Look) {
_lookActionInfos.push_back(*it);