You've already forked godot
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user