We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540ea0b commit 99c06e6Copy full SHA for 99c06e6
scene/resources/packed_scene.cpp
@@ -181,6 +181,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
181
const NodeData *nd = &nodes[0];
182
183
Node **ret_nodes = (Node **)alloca(sizeof(Node *) * nc);
184
+ ret_nodes[0] = nullptr; // Sidesteps "false positive" warnings on GCC.
185
186
bool gen_node_path_cache = p_edit_state != GEN_EDIT_STATE_DISABLED && node_path_cache.is_empty();
187
0 commit comments