diff --git a/source/Game.cpp b/source/Game.cpp index 573b5af..6c6162e 100644 --- a/source/Game.cpp +++ b/source/Game.cpp @@ -15,7 +15,7 @@ namespace sp { Game::Game() : m_running(false) { - m_platform = PlatformApplication::create(); + m_platform = PlatformApplication::get(); m_graphics = new Graphics(m_platform); m_input = new InputModule(&m_platform->getInput()); m_messageHandler = new MessageHandler(); @@ -29,7 +29,6 @@ Game::~Game() // TODO: This is abit ugly tbh. m_platform->shutdown(); - delete m_platform; } void Game::run()