mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 20:12:40 +02:00
memory problems
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user