From 1cea2f1b490a1cb7ec047e79700fa885db92231b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 8 Jun 2014 12:33:16 +0300 Subject: [PATCH] Fix switch from "skybox" to other sky types as triggered by player:set_sky() --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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