aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/commands/endblockcommand.cpp
diff options
context:
space:
mode:
authorĽubomír Remák2018-03-22 19:48:57 +0100
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commite1d173ed7541f9da79f60a65d974da3ebbb29e7a (patch)
tree505833c76c52396d154a49474c5509729020e4f5 /engines/mutationofjb/commands/endblockcommand.cpp
parent63c0dac9613caef3778a4cb9765bb8b628e5a1c2 (diff)
downloadscummvm-rg350-e1d173ed7541f9da79f60a65d974da3ebbb29e7a.tar.gz
scummvm-rg350-e1d173ed7541f9da79f60a65d974da3ebbb29e7a.tar.bz2
scummvm-rg350-e1d173ed7541f9da79f60a65d974da3ebbb29e7a.zip
MUTATIONOFJB: Add changescene debug command and fix macro debug commands.
Diffstat (limited to 'engines/mutationofjb/commands/endblockcommand.cpp')
-rw-r--r--engines/mutationofjb/commands/endblockcommand.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/endblockcommand.cpp b/engines/mutationofjb/commands/endblockcommand.cpp
index 4a6e608ae7..53ea74a97b 100644
--- a/engines/mutationofjb/commands/endblockcommand.cpp
+++ b/engines/mutationofjb/commands/endblockcommand.cpp
@@ -167,12 +167,13 @@ void EndBlockCommandParser::finish(ScriptParseContext &) {
_foundMacro = "";
}
-Command::ExecuteResult EndBlockCommand::execute(GameData &) {
+Command::ExecuteResult EndBlockCommand::execute(ScriptExecutionContext &scriptExecCtx) {
+ _nextCmd = scriptExecCtx.popReturnCommand();
return Finished;
}
Command *EndBlockCommand::next() const {
- return nullptr;
+ return _nextCmd;
}
Common::String EndBlockCommand::debugString() const {