Skip to content

Comments

Fix for(var/V in list) for special lists#2368

Merged
wixoaGit merged 1 commit intoOpenDreamProject:masterfrom
wixoaGit:fix_lists_enumeration
Aug 21, 2025
Merged

Fix for(var/V in list) for special lists#2368
wixoaGit merged 1 commit intoOpenDreamProject:masterfrom
wixoaGit:fix_lists_enumeration

Conversation

@wixoaGit
Copy link
Member

#2363 broke list enumeration on special lists because it started enumerating on DreamList's internal _values array which special lists don't use.

I moved every GetValues() implementation to EnumerateValues() instead, as a step towards making every list implement IDreamList instead of inheriting DreamList.

@boring-cyborg boring-cyborg bot added the Runtime Involves the OpenDream server/runtime label Aug 21, 2025
@wixoaGit wixoaGit merged commit 3b91f83 into OpenDreamProject:master Aug 21, 2025
19 of 20 checks passed
@wixoaGit wixoaGit deleted the fix_lists_enumeration branch August 21, 2025 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runtime Involves the OpenDream server/runtime size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant