Skip to content

fix: expanding factions array by reference#481

Merged
LordMidas merged 2 commits into
developmentfrom
fix-factions-array-expansion-happening-by-reference
Dec 17, 2025
Merged

fix: expanding factions array by reference#481
LordMidas merged 2 commits into
developmentfrom
fix-factions-array-expansion-happening-by-reference

Conversation

@LordMidas

Copy link
Copy Markdown
Member

array.resize with passing an array just adds that same array by reference to all the new slots. We instead need to push a new array to each slot.

@LordMidas LordMidas requested a review from TaroEld December 17, 2025 05:50
array.resize with passing an array just adds that same array by reference to all the new slots. We instead need to push a new array to each slot.
@LordMidas LordMidas force-pushed the fix-factions-array-expansion-happening-by-reference branch from e562418 to a2c78fc Compare December 17, 2025 06:02
@LordMidas LordMidas merged commit 5ee24fa into development Dec 17, 2025
@LordMidas LordMidas deleted the fix-factions-array-expansion-happening-by-reference branch December 17, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants