diff options
Diffstat (limited to 'engines/mutationofjb/commands/camefromcommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/camefromcommand.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/camefromcommand.cpp b/engines/mutationofjb/commands/camefromcommand.cpp index 2c232c1ce5..0583187884 100644 --- a/engines/mutationofjb/commands/camefromcommand.cpp +++ b/engines/mutationofjb/commands/camefromcommand.cpp @@ -22,6 +22,7 @@ #include "mutationofjb/commands/camefromcommand.h" #include "mutationofjb/gamedata.h" +#include "mutationofjb/script.h" #include "common/str.h" /* @@ -44,8 +45,8 @@ bool CameFromCommandParser::parse(const Common::String &line, ScriptParseContext return true; } -Command::ExecuteResult CameFromCommand::execute(GameData &gameData) { - _cachedResult = (gameData._lastScene == _sceneId); +Command::ExecuteResult CameFromCommand::execute(ScriptExecutionContext &scriptExecCtx) { + _cachedResult = (scriptExecCtx.getGameData()._lastScene == _sceneId); return Finished; } |