mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Merge pull request #35218 from bojidar-bg/26691-parse-error-errors
Fix errors raised when showing parse errors in the editor
This commit is contained in:
commit
8b0e2a409b
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue