Fix some code found by Coverity Scan and PVS Studio
This commit is contained in:
parent
e466dc2daa
commit
aab8da25ad
24 changed files with 71 additions and 65 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue