diff options
| author | Ľubomír Remák | 2018-03-24 01:43:33 +0100 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
| commit | 7a1898730155dce824451d98bbe65b430832d575 (patch) | |
| tree | 2f09454562fc770f349489d35004ed62cf6534b8 /engines/mutationofjb/commands | |
| parent | 938f222d4857b45e0f1f7e4726040ab0bf1d9b67 (diff) | |
| download | scummvm-rg350-7a1898730155dce824451d98bbe65b430832d575.tar.gz scummvm-rg350-7a1898730155dce824451d98bbe65b430832d575.tar.bz2 scummvm-rg350-7a1898730155dce824451d98bbe65b430832d575.zip | |
MUTATIONOFJB: Support for running commands.
Diffstat (limited to 'engines/mutationofjb/commands')
| -rw-r--r-- | engines/mutationofjb/commands/callmacrocommand.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/callmacrocommand.cpp b/engines/mutationofjb/commands/callmacrocommand.cpp index b1c59eba21..49b948c48d 100644 --- a/engines/mutationofjb/commands/callmacrocommand.cpp +++ b/engines/mutationofjb/commands/callmacrocommand.cpp @@ -62,8 +62,7 @@ Command *CallMacroCommand::getReturnCommand() const { } Command::ExecuteResult CallMacroCommand::execute(ScriptExecutionContext &scriptExecCtx) { - Game &game = scriptExecCtx.getGame(); - _callCommand = game.getMacro(_macroName); + _callCommand = scriptExecCtx.getMacro(_macroName); if (_callCommand) { scriptExecCtx.pushReturnCommand(_returnCommand); } else { |
