summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/object/script_language.cpp3
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) {