From 83f4d05df84a6e2ae0984a2f52956c61a490a6f6 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 12 Sep 2022 21:13:04 +0200 Subject: [PATCH] source/Game.cpp: call PlatformApplication::get() and dont delete the pointer. --- source/Game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()