From e80a044818714da480fe6f108f0439f67380fca6 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sat, 17 Jan 2015 20:05:45 +0100 Subject: Fix use of uninit data in Sky and (potentially) GUIChatConsole constructors Clean up nearby code a bit As a small side effect, it is now possible to add a background texture to the chat console by simply providing background_chat.jpg, it is no longer necessary to also add "console_color =" to minetest.conf. --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 10ed61c5b..cedaabb1b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1984,7 +1984,7 @@ bool Game::createClient(const std::string &playername, /* Skybox */ - sky = new Sky(smgr->getRootSceneNode(), smgr, -1); + sky = new Sky(smgr->getRootSceneNode(), smgr, -1, texture_src); skybox = NULL; // This is used/set later on in the main run loop local_inventory = new Inventory(itemdef_manager); -- cgit v1.2.3