summaryrefslogtreecommitdiffstats
path: root/src/control/RPGEdit.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-14 23:12:07 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-14 23:12:07 +0100
commit0b3e29dea9863c4b5ca0c77958bbcb32a05867ca (patch)
treef96454b1c29d73ee5c083b5b2fdb988bc574542d /src/control/RPGEdit.cpp
parentf05141f1f78d9e0d917b2cc07f0fb09fd7f62801 (diff)
downloadrpgedit-0b3e29dea9863c4b5ca0c77958bbcb32a05867ca.tar
rpgedit-0b3e29dea9863c4b5ca0c77958bbcb32a05867ca.zip
Some work towards scriptable events
Diffstat (limited to 'src/control/RPGEdit.cpp')
-rw-r--r--src/control/RPGEdit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/control/RPGEdit.cpp b/src/control/RPGEdit.cpp
index a1a699f..6068236 100644
--- a/src/control/RPGEdit.cpp
+++ b/src/control/RPGEdit.cpp
@@ -26,7 +26,6 @@
#include "RPGEdit.hpp"
#include "MapContext.hpp"
-#include "ScriptContext.hpp"
#include "../view/MapView.hpp"
@@ -106,7 +105,7 @@ void RPGEdit::run() {
window = std::make_shared<View::Window>();
- ctx = std::make_shared<MapContext>(&eventBus, &inputHandler, window, *map);
+ ctx = std::make_shared<MapContext>(&eventBus, &inputHandler, &scriptContext, window, *map);
eventThread = std::thread([this] { eventLoop(); });