X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.cpp;h=4c8c5747ff71dd5620fe2a6d26c96fdf0efc4e03;hb=aa1a197e532673f0c4d33dee5bed27298c050d38;hp=ac95ed0a26f69287d24f69518acd3ef001f4cdaf;hpb=a01c2f05b5a6493d7fe097eb15e5337a095992ae;p=l2e.git 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(); } }