Fix switch from "skybox" to other sky types as triggered by player:set_sky()

master
Perttu Ahola 2014-06-08 12:33:16 +03:00
parent f70e0556fc
commit 1cea2f1b49
1 changed files with 1 additions and 1 deletions

View 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