diff options
Diffstat (limited to 'engines/mutationofjb/commands/endblockcommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/endblockcommand.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/mutationofjb/commands/endblockcommand.cpp b/engines/mutationofjb/commands/endblockcommand.cpp index 019c3b5432..2d2ebe3478 100644 --- a/engines/mutationofjb/commands/endblockcommand.cpp +++ b/engines/mutationofjb/commands/endblockcommand.cpp @@ -121,6 +121,16 @@ void EndBlockCommandParser::transition(ScriptParseContext &parseCtx, Command *, } } +void EndBlockCommandParser::finish(ScriptParseContext &) { + _elseFound = false; + _ifTag = 0; + + if (!_pendingActionInfos.empty()) { + debug("Problem: Pending action infos from end block parser is not empty!"); + } + _pendingActionInfos.clear(); +} + Command::ExecuteResult EndBlockCommand::execute(GameData &) { return Finished; } |