From acaf4e6bcc3c9d88f9f8f6cdf57d9c4d48c8d266 Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Tue, 6 Sep 2022 02:42:55 -0400 Subject: [PATCH] Fixes sold out items not getting overwritten by the randomized info. --- soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c b/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c index 83da4d92ca..d167138556 100644 --- a/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c +++ b/soh/src/overlays/actors/ovl_En_GirlA/z_en_girla.c @@ -1206,7 +1206,7 @@ void EnGirlA_InitializeItemAction(EnGirlA* this, GlobalContext* globalCtx) { this->yRotation = 0; this->yRotationInit = this->actor.shape.rot.y; - if (gSaveContext.n64ddFlag && Randomizer_GetSettingValue(RSK_SHOPSANITY)) { + if (gSaveContext.n64ddFlag && Randomizer_GetSettingValue(RSK_SHOPSANITY) && params != SI_SOLD_OUT) { ShopItemIdentity shopItemIdentity = Randomizer_IdentifyShopItem(globalCtx->sceneNum, this->randoSlotIndex); if (shopItemIdentity.randomizerCheck != RC_UNKNOWN_CHECK) { if (shopItemIdentity.enGirlAShopItem == -1) {