From e692e6efee332f4c084b4f734da0eff6ca34b374 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Thu, 22 Apr 2010 22:08:56 +0000 Subject: [PATCH] memory problems --- source/glest_game/menu/main_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/menu/main_menu.cpp b/source/glest_game/menu/main_menu.cpp index 2b73406c..2f64981e 100644 --- a/source/glest_game/menu/main_menu.cpp +++ b/source/glest_game/menu/main_menu.cpp @@ -156,7 +156,7 @@ void MainMenu::keyPress(char c){ void MainMenu::setState(MenuState *state){ if(oldstate!=NULL) delete oldstate; - MenuState *oldstate=this->state; + oldstate=this->state; this->state= state; GraphicComponent::resetFade(); menuBackground.setTargetCamera(state->getCamera());