mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 20:42:34 +02:00
memory problems
This commit is contained in:
@@ -156,7 +156,7 @@ void MainMenu::keyPress(char c){
|
|||||||
|
|
||||||
void MainMenu::setState(MenuState *state){
|
void MainMenu::setState(MenuState *state){
|
||||||
if(oldstate!=NULL) delete oldstate;
|
if(oldstate!=NULL) delete oldstate;
|
||||||
MenuState *oldstate=this->state;
|
oldstate=this->state;
|
||||||
this->state= state;
|
this->state= state;
|
||||||
GraphicComponent::resetFade();
|
GraphicComponent::resetFade();
|
||||||
menuBackground.setTargetCamera(state->getCamera());
|
menuBackground.setTargetCamera(state->getCamera());
|
||||||
|
Reference in New Issue
Block a user