summaryrefslogtreecommitdiffstats
path: root/src/control/MapContext.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-14 23:44:20 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-14 23:44:20 +0100
commitf41fc409959c5c050c3774c654e655589e744e22 (patch)
treef17ae2a95c112f96961502ac61dc4ea3fbca1c52 /src/control/MapContext.cpp
parent969de84c135ed73db31aa96ef12fe1d589460aed (diff)
downloadrpgedit-f41fc409959c5c050c3774c654e655589e744e22.tar
rpgedit-f41fc409959c5c050c3774c654e655589e744e22.zip
Make calling ScriptContext::run nicer
Diffstat (limited to 'src/control/MapContext.cpp')
-rw-r--r--src/control/MapContext.cpp3
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) {