From: Daniel Karbach Date: Fri, 10 Aug 2012 20:23:07 +0000 (+0200) Subject: fix bug in Application that caused the program to crash just before it finished X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=dafa7913073e730f352db1c2a76f55bbff39475c;p=l2e.git fix bug in Application that caused the program to crash just before it finished --- diff --git a/src/app/Application.cpp b/src/app/Application.cpp index 819882e..c1e4f15 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -28,7 +28,7 @@ Application::~Application() { State *Application::CurrentState() { - return states.top(); + return states.empty() ? 0 : states.top(); } void Application::UpdateState() {