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.
Logic
was preventingContext
from being reset on file load because it was holding onto its reference of its parentContext
instance, thus causingSettings::CreateOptions()
to continually add to thetricksByArea
structure. This fixes that by forcing the global rando context'sLogic
child to release its parentContext
reference by setting itsshared_ptr
tonullptr
before callingreset()
ongRandoContext
.Fixes #4393
Build Artifacts