summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-04-30 18:23:19 +0200
committerAetias <aetias@outlook.com>2024-04-30 18:23:19 +0200
commit028207d6a8cc7bd88afb51cefd8bdd749993b00d (patch)
tree28645a24403290193576061636e213ba811d1614 /include
parent74a07a6992129cdaad37c649e03a32fe33450a7b (diff)
Decomp `ItemManager::HasAllPotions`
Diffstat (limited to 'include')
-rw-r--r--include/Item/ItemManager.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/Item/ItemManager.hpp b/include/Item/ItemManager.hpp
index caaab162..666ae6de 100644
--- a/include/Item/ItemManager.hpp
+++ b/include/Item/ItemManager.hpp
@@ -21,6 +21,7 @@ extern "C" {
#define MAX_HOURGLASS_SECONDS 1500 // 25 minutes
#define MAX_AMMO_UPGRADE 2
#define MAX_UNK_0BA 9
+#define MAX_POTIONS 2
typedef s32 FairyId;
enum FairyId_ {
@@ -207,7 +208,7 @@ private:
/* 0b6 */ u16 mBombBagSize;
/* 0b8 */ u16 mBombchuBagSize;
/* 0ba */ u16 mUnk_0ba; // only between 0 and 9
- /* 0bc */ Potion mPotions[2];
+ /* 0bc */ Potion mPotions[MAX_POTIONS];
/* 0be */ unk8 mUnk_0be[2]; // padding?
/* 0c0 */ ItemModel *mItemModels[ItemModelId_COUNT];
/* 100 */ ItemModel *mDungeonItemModels[DungeonItemModelId_COUNT]; // non-null in dungeons/caves