From: Daniel Karbach Date: Sun, 19 Aug 2012 20:24:18 +0000 (+0200) Subject: fixed popping all states on application exit X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=69ed4a9c725c438079ceeed89d49656d808308ce;p=l2e.git fixed popping all states on application exit --- diff --git a/src/app/Application.cpp b/src/app/Application.cpp index ac95ed0..4c8c574 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -106,7 +106,10 @@ void Application::Quit() { void Application::PopAllStates() { while (!states.empty()) { - RealPopState(); + states.top()->PauseState(*this, screen->Screen()); + states.top()->ExitState(*this, screen->Screen()); + delete states.top(); + states.pop(); } }