summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-10-07 10:25:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-10-07 10:25:30 -0300
commit3cf6a6fa8cdbd69d2e36addb112ea91fe56577c4 (patch)
tree897f81ad8ca201b1f2421f2578989fc4e07a16f2
parent0fa94a96904a8ff44d1a26fd6b783c2d6a533540 (diff)
-One liner fix for crash, line was removed accidentally.
-rw-r--r--scene/resources/packed_scene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp
index 76e4aad81e..75a1b765ee 100644
--- a/scene/resources/packed_scene.cpp
+++ b/scene/resources/packed_scene.cpp
@@ -104,6 +104,8 @@ Node *PackedScene::instance(bool p_gen_edit_state) const {
}
}
+ node = obj->cast_to<Node>();
+
}