Commit cc23e9b
Invalidate events with unresolved callbacks on state load
If a saved event references a callback not in the registry (e.g. from
a newer version), id_to_callback returns NULL. Previously the event
was still marked valid, risking a NULL function pointer call in
HandleNextEvent. Now events with NULL callbacks are forced invalid.
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 07cdb71 commit cc23e9b
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | 340 | | |
| 341 | + | |
| 342 | + | |
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| |||
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
357 | | - | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
359 | 361 | | |
360 | 362 | | |
361 | 363 | | |
| |||
0 commit comments