From: Daniel Karbach Date: Sun, 19 Aug 2012 20:24:18 +0000 (+0200) Subject: fixed popping all states on application exit X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=69ed4a9c725c438079ceeed89d49656d808308ce;hp=591ecc2d7ecb0b41144be9b64c09801ac0a28131;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(); } }