memory problems

This commit is contained in:
Titus Tscharntke 2010-04-22 22:08:56 +00:00
parent e0c55688e3
commit e692e6efee

View File

@ -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());