summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-04-04 22:00:16 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-04-04 22:00:16 +0200
commit8460d0678c28816f6f206f40b71de2510fab1ffc (patch)
tree57970414bfd1d51aac751f2c9ec6051ec0fb629e /modules/gdscript/gdscript.h
parentc2c11fc063e723c41579e6307e40fd16ac5334c4 (diff)
downloadredot-engine-8460d0678c28816f6f206f40b71de2510fab1ffc.tar.gz
Small fixes to static analyzer bugs
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index ded873c7d3..f8e1360c0f 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -406,9 +406,10 @@ public:
csi.resize(_debug_call_stack_pos);
for (int i = 0; i < _debug_call_stack_pos; i++) {
csi.write[_debug_call_stack_pos - i - 1].line = _call_stack[i].line ? *_call_stack[i].line : 0;
- if (_call_stack[i].function)
+ if (_call_stack[i].function) {
csi.write[_debug_call_stack_pos - i - 1].func = _call_stack[i].function->get_name();
- csi.write[_debug_call_stack_pos - i - 1].file = _call_stack[i].function->get_script()->get_path();
+ csi.write[_debug_call_stack_pos - i - 1].file = _call_stack[i].function->get_script()->get_path();
+ }
}
return csi;
}