From dafa7913073e730f352db1c2a76f55bbff39475c Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 10 Aug 2012 22:23:07 +0200 Subject: [PATCH] fix bug in Application that caused the program to crash just before it finished --- src/app/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.2