1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Fix some code found by Coverity Scan and PVS Studio

This commit is contained in:
qarmin
2019-07-23 09:14:31 +02:00
parent e466dc2daa
commit aab8da25ad
24 changed files with 71 additions and 65 deletions

View File

@@ -92,6 +92,8 @@ Node *InstancePlaceholder::create_instance(bool p_replace, const Ref<PackedScene
if (!ps.is_valid())
return NULL;
Node *scene = ps->instance();
if (!scene)
return NULL;
scene->set_name(get_name());
int pos = get_position_in_parent();