diff options
| author | Thaddeus Crews <repiteo@outlook.com> | 2024-08-27 10:26:06 -0500 |
|---|---|---|
| committer | Thaddeus Crews <repiteo@outlook.com> | 2024-08-27 10:26:06 -0500 |
| commit | 231f3323d388cc078983b037acbb1542198fe680 (patch) | |
| tree | 073a178f4a52e22694f83489046d9d4837b219f1 /core | |
| parent | 8e80c1070420cf7f9fd9ffcefe9a12f05cfcbb64 (diff) | |
| download | redot-engine-231f3323d388cc078983b037acbb1542198fe680.tar.gz | |
Core: Fix unreachable code
Diffstat (limited to 'core')
| -rw-r--r-- | core/object/script_language.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 0428caa80d..57e5195137 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -712,8 +712,9 @@ Variant PlaceHolderScriptInstance::callp(const StringName &p_method, const Varia } else { return String("Attempt to call a method on a placeholder instance. Probably a bug, please report."); } -#endif +#else return Variant(); +#endif // TOOLS_ENABLED } void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, const HashMap<StringName, Variant> &p_values) { |
