Skip to content

[Crash] Fix ReloadQuest on Shutdown crash related to encounters#1267

Merged
KimLS merged 2 commits intomasterfrom
bug_fix/realodquest_encounter_crash
Mar 6, 2021
Merged

[Crash] Fix ReloadQuest on Shutdown crash related to encounters#1267
KimLS merged 2 commits intomasterfrom
bug_fix/realodquest_encounter_crash

Conversation

@mackal
Copy link
Copy Markdown
Contributor

@mackal mackal commented Feb 24, 2021

Basically, EntityList::RemoveAllEncounters is called before ReloadQuests
resulting in stale pointers in the lua_encounters map.

We just have to remove the entry from the map.

Basically, EntityList::RemoveAllEncounters is called before ReloadQuests
resulting in stale pointers in the lua_encounters map.

We just have to remove the entry from the map.
@mackal mackal requested a review from KimLS February 24, 2021 06:05
@KimLS KimLS merged commit c954c08 into master Mar 6, 2021
@mackal mackal deleted the bug_fix/realodquest_encounter_crash branch March 6, 2021 03:51
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