summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2015-01-17 20:05:45 +0100
committerKahrl <kahrl@gmx.net>2015-01-18 13:16:01 +0100
commite80a044818714da480fe6f108f0439f67380fca6 (patch)
tree3fd92af0f03dcfcccb28bf958b15bca4366c6ee8 /src/game.cpp
parent29514918f81e50e9a87659dd930f4e8369d73041 (diff)
downloadminetest-e80a044818714da480fe6f108f0439f67380fca6.tar.gz
minetest-e80a044818714da480fe6f108f0439f67380fca6.tar.bz2
minetest-e80a044818714da480fe6f108f0439f67380fca6.zip
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.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
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);