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) {