Fixes sold out items not getting overwritten by the randomized info.

This commit is contained in:
Christopher Leggett 2022-09-06 02:42:55 -04:00
parent 4d9bf936b1
commit acaf4e6bcc
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
1 changed files with 1 additions and 1 deletions

View File

@ -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) {