From 231f3323d388cc078983b037acbb1542198fe680 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Tue, 27 Aug 2024 10:26:06 -0500 Subject: [PATCH] Core: Fix unreachable code --- core/object/script_language.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 0428caa80d0..57e51951377 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 &p_properties, const HashMap &p_values) {