diff options
| author | Ľubomír Remák | 2018-03-22 19:48:57 +0100 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
| commit | e1d173ed7541f9da79f60a65d974da3ebbb29e7a (patch) | |
| tree | 505833c76c52396d154a49474c5509729020e4f5 /engines/mutationofjb/commands/removeallitemscommand.cpp | |
| parent | 63c0dac9613caef3778a4cb9765bb8b628e5a1c2 (diff) | |
| download | scummvm-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/removeallitemscommand.cpp')
| -rw-r--r-- | engines/mutationofjb/commands/removeallitemscommand.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/removeallitemscommand.cpp b/engines/mutationofjb/commands/removeallitemscommand.cpp index 8043864715..d9ebe4534a 100644 --- a/engines/mutationofjb/commands/removeallitemscommand.cpp +++ b/engines/mutationofjb/commands/removeallitemscommand.cpp @@ -21,6 +21,7 @@ */ #include "mutationofjb/commands/removeallitemscommand.h" +#include "mutationofjb/script.h" #include "mutationofjb/gamedata.h" /* @@ -40,8 +41,8 @@ bool RemoveAllItemsCommandParser::parse(const Common::String &line, ScriptParseC return true; } -Command::ExecuteResult RemoveAllItemsCommand::execute(GameData &gameData) { - gameData._inventory.removeAllItems(); +Command::ExecuteResult RemoveAllItemsCommand::execute(ScriptExecutionContext &scriptExecCtx) { + scriptExecCtx.getGameData()._inventory.removeAllItems(); return Finished; } |
