summaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-05-17 16:33:35 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-05-17 16:33:35 -0300
commitb6b346e8aeaa4b31f4a89b0711e48a08fa802cf5 (patch)
tree717c932781cff4a0f5da6cd39019ddf33f8679d2 /main/main.cpp
parent2696ecb769a5469bd6fabe2efe9a5914d8cd8a6f (diff)
added a built-in scene changer API, closes #1928
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 1469ce4618..f826b36212 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1248,7 +1248,8 @@ bool Main::start() {
ERR_EXPLAIN("Failed loading scene: "+local_game_path);
ERR_FAIL_COND_V(!scene,false)
- sml->get_root()->add_child(scene);
+ //sml->get_root()->add_child(scene);
+ sml->add_current_scene(scene);
String iconpath = GLOBAL_DEF("application/icon","Variant()""");
if (iconpath!="") {