mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-31 17:41:30 -04:00
Sets global modIndex to MOD_NONE on scene load
Fixes a crash when buying items in shops due to them not triggering the rando code that normally sets these items. May have also been crashing vanilla playthroughs.
This commit is contained in:
@@ -60,6 +60,7 @@ void OTRGameplay_InitScene(GlobalContext* globalCtx, s32 spawn) {
|
||||
globalCtx->cUpElfMsgs = nullptr;
|
||||
globalCtx->setupPathList = nullptr;
|
||||
globalCtx->numSetupActors = 0;
|
||||
OTRGlobals::Instance->getItemModIndex = MOD_NONE;
|
||||
Object_InitBank(globalCtx, &globalCtx->objectCtx);
|
||||
LightContext_Init(globalCtx, &globalCtx->lightCtx);
|
||||
TransitionActor_InitContext(&globalCtx->state, &globalCtx->transiActorCtx);
|
||||
|
||||
Reference in New Issue
Block a user