diff options
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index affcff57..d93c34e2 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -3,6 +3,7 @@ #include "src/tile-atlas.hpp" #include "main/floormat-events.hpp" #include "main/floormat-main.hpp" +#include <Magnum/Platform/Sdl2Application.h> namespace floormat { @@ -52,8 +53,8 @@ void app::update(float dt) { do_camera(dt); draw_ui(); - if (keys[key::quit]) - Platform::Sdl2Application::exit(0); + if (_keys[key::quit]) + M->quit(0); } } // namespace floormat |