diff options
author | George Marques <george@gmarqu.es> | 2022-07-13 09:30:08 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 09:30:08 -0300 |
commit | dc5a6362c17b3a2bdae13e40ce9c5b6fa990e04e (patch) | |
tree | 70d5917e085c6847215e7b41d8fe19533febc90c /modules/gdscript/gdscript_vm.cpp | |
parent | ad11d264b7921a0f6abc027217cb50ee082d373e (diff) | |
parent | e9344f51542efb80b53ce0b61c8528fad8be78c3 (diff) |
Merge pull request #62895 from KoBeWi/callables_exist_you_know
Diffstat (limited to 'modules/gdscript/gdscript_vm.cpp')
-rw-r--r-- | modules/gdscript/gdscript_vm.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_vm.cpp b/modules/gdscript/gdscript_vm.cpp index 1d56dae982..e0beed367a 100644 --- a/modules/gdscript/gdscript_vm.cpp +++ b/modules/gdscript/gdscript_vm.cpp @@ -1032,11 +1032,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a #endif #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() + "()' or funcref(obj, \"" + index->operator String() + "\") ?"; - } else { - err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "')."; - } + err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "')."; OPCODE_BREAK; } *dst = ret; |