diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-14 23:44:20 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-14 23:44:20 +0100 |
commit | f41fc409959c5c050c3774c654e655589e744e22 (patch) | |
tree | f17ae2a95c112f96961502ac61dc4ea3fbca1c52 /src/control/MapContext.cpp | |
parent | 969de84c135ed73db31aa96ef12fe1d589460aed (diff) | |
download | rpgedit-f41fc409959c5c050c3774c654e655589e744e22.tar rpgedit-f41fc409959c5c050c3774c654e655589e744e22.zip |
Make calling ScriptContext::run nicer
Diffstat (limited to 'src/control/MapContext.cpp')
-rw-r--r-- | src/control/MapContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/control/MapContext.cpp b/src/control/MapContext.cpp index 8065b04..246ee96 100644 --- a/src/control/MapContext.cpp +++ b/src/control/MapContext.cpp @@ -87,8 +87,7 @@ void MapContext::interact(uint64_t time) { if (interactScript.first.empty()) return; - Model::ScriptNumber scriptTime(time); - scriptContext->run(interactScript.first, interactScript.second, nullptr, &scriptTime); + scriptContext->run(interactScript.first, interactScript.second, nullptr, time); } void MapContext::keyPressed(uint16_t key, uint64_t time) { |