]> git.localhorst.tv Git - l2e.git/commitdiff
fix bug in Application that caused the program to crash just before it finished
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 20:23:07 +0000 (22:23 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 10 Aug 2012 20:23:07 +0000 (22:23 +0200)
src/app/Application.cpp

index 819882e7251f43e66b7ed77311f97c498e74d456..c1e4f15311526ec5f767078d5faf30d5d9a72eb5 100644 (file)
@@ -28,7 +28,7 @@ Application::~Application() {
 
 
 State *Application::CurrentState() {
-       return states.top();
+       return states.empty() ? 0 : states.top();
 }
 
 void Application::UpdateState() {