Merge pull request #74782 from lawnjelly/gdscriptparser_linkedlist

[3.x] GDScriptParser - don't use index operator on linked list
This commit is contained in:
Rémi Verschelde 2023-03-12 15:51:29 +01:00 committed by GitHub
commit 1a4bcad16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8632,8 +8632,8 @@ void GDScriptParser::_check_block_types(BlockNode *p_block) {
}
// Parse sub blocks
for (int i = 0; i < p_block->sub_blocks.size(); i++) {
current_block = p_block->sub_blocks[i];
for (const List<BlockNode *>::Element *E = p_block->sub_blocks.front(); E; E = E->next()) {
current_block = E->get();
_check_block_types(current_block);
current_block = p_block;
if (error_set) {