Fix errors raised when showing parse errors in the editor

Fixes #26691
This commit is contained in:
Bojidar Marinov 2020-01-16 22:12:24 +02:00
parent 3af0400a32
commit da5b138e64
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856
2 changed files with 4 additions and 2 deletions

View file

@ -335,7 +335,9 @@ void GDScriptLanguage::debug_get_stack_level_members(int p_level, List<String> *
ScriptInstance *GDScriptLanguage::debug_get_stack_level_instance(int p_level) {
ERR_FAIL_COND_V(_debug_parse_err_line >= 0, NULL);
if (_debug_parse_err_line >= 0)
return NULL;
ERR_FAIL_INDEX_V(p_level, _debug_call_stack_pos, NULL);
int l = _debug_call_stack_pos - p_level - 1;