diff --git a/code/source/rnd/item_override.cpp b/code/source/rnd/item_override.cpp index a15f3d38..214438e7 100644 --- a/code/source/rnd/item_override.cpp +++ b/code/source/rnd/item_override.cpp @@ -956,7 +956,10 @@ namespace rnd { return givenItems.enBoss02GivenItem ? (int) currentItem : (int)0xFF; } else if (currentItem == game::ItemId::LensOfTruth) { - auto* gctx = GetContext().gctx; + auto* gctx = rnd::GetContext().gctx; + if (!gctx || gctx->type != game::StateType::Play) { + return game::HasItem(currentItem) ? (int) currentItem : 0xFF; + } if (gctx->scene == game::SceneId::GoronVillageWinter) { auto& saveData = game::GetCommonData().save; if (saveData.player.magic_acquired == 0 || !game::HasItem(currentItem)) return 0xFF;