From: Perttu Ahola Date: Sun, 8 Jun 2014 09:33:16 +0000 (+0300) Subject: Fix switch from "skybox" to other sky types as triggered by player:set_sky() X-Git-Tag: 0.4.10~95 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1cea2f1b490a1cb7ec047e79700fa885db92231b;p=oweals%2Fminetest.git Fix switch from "skybox" to other sky types as triggered by player:set_sky() --- 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