Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix AuxTimerStart crash during DoCountdown iteration#48

Merged
WallSoGB merged 1 commit into
Demorome:mainfrom
Into-The-Rough:feature/fix-aux-timers
Mar 21, 2026
Merged

fix AuxTimerStart crash during DoCountdown iteration#48
WallSoGB merged 1 commit into
Demorome:mainfrom
Into-The-Rough:feature/fix-aux-timers

Conversation

@Into-The-Rough

Copy link
Copy Markdown
Contributor

AuxTimerStart called from OnAuxTimerUpdate/OnAuxTimerStop handlers would insert into UnorderedMap mid-iteration, rehashing and invalidating active iterators. Defer new timer insertion until after DoCountdown completes, matching the existing pattern used for pending removals. Also swap RemovePendingTimers to run after DoCountdown so timers flagged during countdown get cleaned up on the same frame.

AuxTimerStart called from OnAuxTimerUpdate/OnAuxTimerStop handlers
would insert into UnorderedMap mid-iteration, rehashing and
invalidating active iterators. Defer new timer insertion until
after DoCountdown completes, matching the existing pattern used
for pending removals. Also swap RemovePendingTimers to run after
DoCountdown so timers flagged during countdown get cleaned up on
the same frame.
@WallSoGB WallSoGB self-assigned this Mar 18, 2026
@WallSoGB WallSoGB merged commit d2decd1 into Demorome:main Mar 21, 2026
1 check passed
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