diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-01-03 11:03:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 11:03:03 +0100 |
commit | 3db1c6a6f527c667e698478c288b1a8993a09c03 (patch) | |
tree | cbdd19775254fa11ed6c25aef827e9c9c01311cf /modules/gdscript/gdscript_function.cpp | |
parent | edd78d54c4d8361d257aefb3734c4138f9f05590 (diff) | |
parent | 29f7f48c42a4895b6d5fb4ffe8117bfd766bdc9f (diff) | |
download | redot-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.cpp | 2 |
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) + "')."; } |