summaryrefslogtreecommitdiffstats
path: root/src/control/RPGEdit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/control/RPGEdit.cpp')
-rw-r--r--src/control/RPGEdit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/control/RPGEdit.cpp b/src/control/RPGEdit.cpp
index e22d8fa..257a801 100644
--- a/src/control/RPGEdit.cpp
+++ b/src/control/RPGEdit.cpp
@@ -99,12 +99,11 @@ void RPGEdit::eventLoop() {
}
void RPGEdit::run() {
- std::shared_ptr<Model::Map> map = Model::Map::load("test");
+ std::unique_ptr<Model::Map> map = Model::Map::load("test");
window = std::make_shared<View::Window>();
- mapView = std::make_shared<View::MapView>(window, map);
- ctx = std::make_shared<MapContext>(&eventBus, &inputHandler, mapView.get(), map);
+ ctx = std::make_shared<MapContext>(&eventBus, &inputHandler, window, *map);
eventThread = std::thread([this] { eventLoop(); });