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/removeitemcommand.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/removeitemcommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/removeitemcommand.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/removeitemcommand.cpp b/engines/mutationofjb/commands/removeitemcommand.cpp index e4d9601824..48dbda9801 100644 --- a/engines/mutationofjb/commands/removeitemcommand.cpp +++ b/engines/mutationofjb/commands/removeitemcommand.cpp @@ -21,6 +21,7 @@ */ #include "mutationofjb/commands/removeitemcommand.h" +#include "mutationofjb/script.h" #include "mutationofjb/gamedata.h" /* @@ -40,8 +41,8 @@ bool RemoveItemCommandParser::parse(const Common::String &line, ScriptParseConte return true; } -Command::ExecuteResult RemoveItemCommand::execute(GameData &gameData) { - gameData._inventory.removeItem(_item); +Command::ExecuteResult RemoveItemCommand::execute(ScriptExecutionContext &scriptExecCtx) { + scriptExecCtx.getGameData()._inventory.removeItem(_item); return Finished; } |