aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2014-06-08 12:33:16 +0300
committerPerttu Ahola <celeron55@gmail.com>2014-06-08 12:33:16 +0300
commit1cea2f1b490a1cb7ec047e79700fa885db92231b (patch)
treec32bd3ef8a58b486ff714770071e4af34d7bd98e
parentf70e0556fcf28b21b5a6717524caa29ccd49a516 (diff)
downloadminetest-1cea2f1b490a1cb7ec047e79700fa885db92231b.tar.gz
minetest-1cea2f1b490a1cb7ec047e79700fa885db92231b.tar.bz2
minetest-1cea2f1b490a1cb7ec047e79700fa885db92231b.zip
Fix switch from "skybox" to other sky types as triggered by player:set_sky()
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index a3f73465b..6076ac4a0 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2532,7 +2532,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
else if (event.type == CE_SET_SKY) {
sky->setVisible(false);
if(skybox){
- skybox->drop();
+ skybox->remove();
skybox = NULL;
}
// Handle according to type