aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 76e2777..49acd4f 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -730,7 +730,10 @@ DONE:
toggleBlackFast();
}
}else{*/
- currentWorld=currentWorld->goInsideStructure(player);
+ if((tmp = currentWorld->goInsideStructure(player)) != currentWorld){
+ delete currentWorld;
+ currentWorld = tmp;
+ }
//}*/
break;
case SDLK_i: