projects
/
l2e.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591ecc2
)
fixed popping all states on application exit
author
Daniel Karbach
<daniel.karbach@localhorst.tv>
Sun, 19 Aug 2012 20:24:18 +0000
(22:24 +0200)
committer
Daniel Karbach
<daniel.karbach@localhorst.tv>
Sun, 19 Aug 2012 20:24:18 +0000
(22:24 +0200)
src/app/Application.cpp
patch
|
blob
|
history
diff --git
a/src/app/Application.cpp
b/src/app/Application.cpp
index ac95ed0a26f69287d24f69518acd3ef001f4cdaf..4c8c5747ff71dd5620fe2a6d26c96fdf0efc4e03 100644
(file)
--- 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();
}
}