Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Crash due to drawRadarBlips calling removeMessage #3662

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

past-due
Copy link
Member

Because removeMessage may modify widgets, it cannot be called directly from within a widget event / callback (in this case, it was ultimately being called by RadarWidget::display).

Refactor this out to a new cleanupOldBeaconMessages() function which can be called at a safe time.

Because removeMessage may modify widgets, it cannot be called directly from within a widget event / callback (in this case, it was ultimately being called by RadarWidget::display).

Refactor this out to a new cleanupOldBeaconMessages() function which can be called at a safe time.
@past-due past-due merged commit 0bc7a84 into Warzone2100:master Feb 28, 2024
38 checks passed
@past-due past-due deleted the 2024_02_radar_crash_fix_1 branch February 28, 2024 23:24
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