Skip to content

Conversation

@chenel
Copy link
Collaborator

@chenel chenel commented Feb 12, 2025

Though in principle stuff that's all in the same translation unit should be initialized in order of appearance, the Okabe-Ito custom TColor instances seem not to have been fully initialized by the time they are stored in their color cycler. This PR packs them away into a function, in the same way the Static Initialization Order Fiasco is usually worked around. That seems to solve it.

@chenel chenel requested a review from a team as a code owner February 12, 2025 20:45
@calcuttj calcuttj self-requested a review February 12, 2025 21:03
Copy link

@calcuttj calcuttj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested that it works
image
image

Copy link
Contributor

@admlw admlw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me, and looks like Jake was able to test it and it works 👌🏻

@chenel chenel merged commit acf7ad8 into main Feb 12, 2025
2 checks passed
@chenel chenel deleted the bugfix/color_cycler branch February 12, 2025 21:06
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.

4 participants