summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_function.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-01-03 11:03:03 +0100
committerGitHub <noreply@github.com>2018-01-03 11:03:03 +0100
commit3db1c6a6f527c667e698478c288b1a8993a09c03 (patch)
treecbdd19775254fa11ed6c25aef827e9c9c01311cf /modules/gdscript/gdscript_function.cpp
parentedd78d54c4d8361d257aefb3734c4138f9f05590 (diff)
parent29f7f48c42a4895b6d5fb4ffe8117bfd766bdc9f (diff)
downloadredot-engine-3db1c6a6f527c667e698478c288b1a8993a09c03.tar.gz
Merge pull request #15089 from poke1024/funcref-warn
Warn about funcref creation
Diffstat (limited to 'modules/gdscript/gdscript_function.cpp')
-rw-r--r--modules/gdscript/gdscript_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp
index d97f355400..3023b489e5 100644
--- a/modules/gdscript/gdscript_function.cpp
+++ b/modules/gdscript/gdscript_function.cpp
@@ -605,7 +605,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
#ifdef DEBUG_ENABLED
if (!valid) {
if (src->has_method(*index)) {
- err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "'). Did you mean '." + index->operator String() + "()' ?";
+ err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "'). Did you mean '." + index->operator String() + "()' or funcref(obj, \"" + index->operator String() + "\") ?";
} else {
err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "').";
}