HarbourMasters / Shipwright

3.3k stars 494 forks source link

Fix Trick List Duplication #4429

Closed Malkierian closed 1 month ago

Malkierian commented 1 month ago

Logic was preventing Context from being reset on file load because it was holding onto its reference of its parent Context instance, thus causing Settings::CreateOptions() to continually add to the tricksByArea structure. This fixes that by forcing the global rando context's Logic child to release its parent Context reference by setting its shared_ptr to nullptr before calling reset() on gRandoContext.

Fixes #4393

Build Artifacts