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-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=1cea2f1b490a1cb7ec047e79700fa885db92231b;p=zefram%2Fminetest%2Fminetest_engine.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 a3f73465..6076ac4a 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