summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-12-16 16:11:13 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-12-16 16:11:13 -0300
commitcf84ee22a9b884453ac8d50b4c3216baf2e3897a (patch)
tree88136b39a990bf218cec062cbbf47d785a5c1ea5 /scene/resources
parentc93cb30cbb8374bad0a5fac8f63b3fc6915d411d (diff)
Added custom editor splash (including sponsor logo).
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/packed_scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp
index af6375c6e0..879f76e6d8 100644
--- a/scene/resources/packed_scene.cpp
+++ b/scene/resources/packed_scene.cpp
@@ -1213,7 +1213,7 @@ Dictionary SceneState::get_bundled_scene() const {
rnodes.push_back(nd.owner);
rnodes.push_back(nd.type);
uint32_t name_index = nd.name;
- if (nd.index < (1 << (32 - NAME_INDEX_BITS))) { //save if less than 16k childs
+ if (nd.index < (1 << (32 - NAME_INDEX_BITS)) - 1) { //save if less than 16k childs
name_index |= uint32_t(nd.index + 1) << NAME_INDEX_BITS; //for backwards compatibility, index 0 is no index
}
rnodes.push_back(name_index);