Fix switch from "skybox" to other sky types as triggered by player:set_sky()
authorPerttu Ahola <celeron55@gmail.com>
Sun, 8 Jun 2014 09:33:16 +0000 (12:33 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 8 Jun 2014 09:33:16 +0000 (12:33 +0300)
src/game.cpp

index a3f73465b9d2e96d681acd16bdd6163440b4b0a4..6076ac4a0aeb5d83c7cd90bf9a466cfb0f69c8ac 100644 (file)
@@ -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