diff --git a/include/Player/LinkStateBase.hpp b/include/Player/LinkStateBase.hpp index 46038d2d..3371b937 100644 --- a/include/Player/LinkStateBase.hpp +++ b/include/Player/LinkStateBase.hpp @@ -129,6 +129,6 @@ public: DebugHierarchy *GetDebugHierarchy1(); }; -unk32 GetLinkState(s32 index); +LinkStateBase *GetLinkState(s32 index); extern LinkStateBase **gLinkStates; diff --git a/src/00_Core/Player/LinkStateItem.cpp b/src/00_Core/Player/LinkStateItem.cpp index 6719ee12..ade648fc 100644 --- a/src/00_Core/Player/LinkStateItem.cpp +++ b/src/00_Core/Player/LinkStateItem.cpp @@ -23,7 +23,9 @@ EquipBombchu *LinkStateItem::GetEquipBombchu() { return (EquipBombchu *)ItemManager::GetEquipItemUnchecked(7); } -LinkStateMove *LinkStateItem::GetLinkStateMove() {} +LinkStateMove *LinkStateItem::GetLinkStateMove() { + return (LinkStateMove *)GetLinkState(0); +} bool LinkStateItem::func_ov00_020abf70() { return gAdventureFlags->func_ov00_02097b9c(this->mUnk_5c); diff --git a/src/Main/Player/LinkState.cpp b/src/Main/Player/LinkState.cpp index 316e3f50..b5e5621e 100644 --- a/src/Main/Player/LinkState.cpp +++ b/src/Main/Player/LinkState.cpp @@ -1,5 +1,5 @@ #include "Player/LinkStateBase.hpp" -unk32 GetLinkState(s32 index) { - return (unk32)gLinkStates[index]; +LinkStateBase *GetLinkState(s32 index) { + return gLinkStates[index]; }