Skip to content

Fix nil CurrentFightData crash in SnapshotSession#24

Open
Amadeus- wants to merge 1 commit intoResike:mainfrom
Amadeus-:FixCurrentFightData
Open

Fix nil CurrentFightData crash in SnapshotSession#24
Amadeus- wants to merge 1 commit intoResike:mainfrom
Amadeus-:FixCurrentFightData

Conversation

@Amadeus-
Copy link
Copy Markdown
Contributor

@Amadeus- Amadeus- commented Apr 4, 2026

Combatants created via COMBAT_LOG_EVENT_UNFILTERED (InitCombatant) only initialize Fights = {}, no CurrentFightData or OverallData. When GetOrCreateCombatant in the C_DamageMeter path finds one of these by name or GUID, it returns it as-is. SnapshotSession then crashes at the time-setting loop trying to index nil CurrentFightData.

  • Added EnsureFightData() to initialize missing fight data on pre-existing combatants when the C_DamageMeter path picks them up.
  • Added a nil guard to the SnapshotSession time loop to match the existing guard in the combat-end reset loop.

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.

1 participant