mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Force global rando context's Logic child to release its parent Context reference. (#4429)
This commit is contained in:
parent
52d1a98f41
commit
469797478e
1 changed files with 1 additions and 0 deletions
|
@ -2842,6 +2842,7 @@ extern "C" void Save_SaveGlobal(void) {
|
|||
|
||||
extern "C" void Save_LoadFile(void) {
|
||||
// Handle vanilla context reset
|
||||
OTRGlobals::Instance->gRandoContext->GetLogic()->SetContext(nullptr);
|
||||
OTRGlobals::Instance->gRandoContext.reset();
|
||||
OTRGlobals::Instance->gRandoContext = Rando::Context::CreateInstance();
|
||||
OTRGlobals::Instance->gRandoContext->GetLogic()->SetSaveContext(&gSaveContext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue