Fix ItemManager error

This commit is contained in:
Aetias
2024-09-14 10:55:59 +02:00
parent ce3ed54481
commit 514f8e43da
+1 -2
View File
@@ -237,7 +237,6 @@ extern "C" unk32 func_ov00_02078b40(UnkStruct_027e0d38 *param1);
extern void *data_027e10a4;
extern "C" bool func_ov15_02136670(void *param1);
extern unk8 data_ov29_0217a4ac[];
extern "C" bool _ZN10MapManager18func_ov00_020849f8Ei(void *param1);
extern "C" bool _ZN14PlayerLinkBase18func_ov00_020bbd80Ei(unk32 param1, unk32 param2);
extern "C" bool _ZNK11ItemManager7HasItemEi();
extern "C" void _ZN11ItemManager12GetEquipItemEi();
@@ -251,7 +250,7 @@ ARM bool ItemManager::func_ov00_020ad790(unk32 param1) {
}
ItemFlag equipId = mForcedItem;
bool unk2 = !gMapManager->func_ov00_020849f8();
bool unk2 = !gMapManager->func_ov00_020849f8(equipId);
if (
mEquippedItem != ItemFlag_None &&
(unk2 || (u32) mEquippedItem - 9 <= 1) &&