Core: Fix unreachable code

This commit is contained in:
Thaddeus Crews 2024-08-27 10:26:06 -05:00
parent 8e80c10704
commit 231f3323d3
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84
1 changed files with 2 additions and 1 deletions

View File

@ -712,8 +712,9 @@ Variant PlaceHolderScriptInstance::callp(const StringName &p_method, const Varia
} else { } else {
return String("Attempt to call a method on a placeholder instance. Probably a bug, please report."); return String("Attempt to call a method on a placeholder instance. Probably a bug, please report.");
} }
#endif #else
return Variant(); return Variant();
#endif // TOOLS_ENABLED
} }
void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, const HashMap<StringName, Variant> &p_values) { void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, const HashMap<StringName, Variant> &p_values) {