diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-28 11:49:18 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-28 11:49:57 -0300 |
commit | 3754f6cd755c5ab266869a33abdde87db4845712 (patch) | |
tree | f8647354ac64c1ad886f732435ff83d503d85226 /modules/gdscript/gd_editor.cpp | |
parent | c6ca17e12a4e439c3146672627c30c09e617a253 (diff) | |
download | redot-engine-3754f6cd755c5ab266869a33abdde87db4845712.tar.gz |
Properly show the source:line even in inner clases, closes #3766
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
-rw-r--r-- | modules/gdscript/gd_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index b1da7e782c..07a5a636d4 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -212,7 +212,7 @@ String GDScriptLanguage::debug_get_stack_level_source(int p_level) const { ERR_FAIL_INDEX_V(p_level,_debug_call_stack_pos,""); int l = _debug_call_stack_pos - p_level -1; - return _call_stack[l].function->get_script()->get_path(); + return _call_stack[l].function->get_source(); } void GDScriptLanguage::debug_get_stack_level_locals(int p_level,List<String> *p_locals, List<Variant> *p_values, int p_max_subitems,int p_max_depth) { |