From fa31853d1b3b828ab63567d66e31b7e3bd23134c Mon Sep 17 00:00:00 2001 From: robojumper Date: Sat, 24 Jan 2026 10:59:54 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Elijah Thomas <42302100+elijah-thomas774@users.noreply.github.com> --- include/d/lyt/d_lyt_deposit.h | 6 +++--- include/d/lyt/d_lyt_deposit_box_cursor.h | 2 +- src/d/lyt/d_lyt_deposit.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/d/lyt/d_lyt_deposit.h b/include/d/lyt/d_lyt_deposit.h index e9a7128b..22689646 100644 --- a/include/d/lyt/d_lyt_deposit.h +++ b/include/d/lyt/d_lyt_deposit.h @@ -229,9 +229,9 @@ private: STATE_MGR_DEFINE_UTIL_ISSTATE(dLytDeposit_c); STATE_MGR_DEFINE_UTIL_CHANGESTATE(dLytDeposit_c); - /* 0x08C */ UI_STATE_MGR_DECLARE(dLytDeposit_c); - /* 0x0C8 */ d2d::ResAccIf_c mResAcc; - /* 0x438 */ dLytDepositMain_c mMain; + /* 0x0008C */ UI_STATE_MGR_DECLARE(dLytDeposit_c); + /* 0x000C8 */ d2d::ResAccIf_c mResAcc; + /* 0x00438 */ dLytDepositMain_c mMain; /* 0x19998 */ bool mInRequest; /* 0x19999 */ bool mIsMovingOut; /* 0x1999A */ bool mScrollViaArrowButton; diff --git a/include/d/lyt/d_lyt_deposit_box_cursor.h b/include/d/lyt/d_lyt_deposit_box_cursor.h index 67aced0d..a79d13d4 100644 --- a/include/d/lyt/d_lyt_deposit_box_cursor.h +++ b/include/d/lyt/d_lyt_deposit_box_cursor.h @@ -56,7 +56,7 @@ private: /* 0x930 */ d2d::SubPaneList mSubpaneList; /* 0x938 */ d2d::SubPaneListNode mNode; /* 0x948 */ bool mIsVisible; - /* 0x948 */ bool mIsSellMode; + /* 0x949 */ bool mIsSellMode; /* 0x94C */ s32 mSlot; /* 0x950 */ s32 mItem; /* 0x954 */ s32 mItemLocation; diff --git a/src/d/lyt/d_lyt_deposit.cpp b/src/d/lyt/d_lyt_deposit.cpp index b71367c1..7f3c082c 100644 --- a/src/d/lyt/d_lyt_deposit.cpp +++ b/src/d/lyt/d_lyt_deposit.cpp @@ -641,7 +641,7 @@ bool dLytDepositMain_c::execute() { for (int i = 0; i < DEPOSIT_ANIM_HAVE_OFFSET; i++) { if (mAnm[i].isEnabled()) { - if (i >= 19 && i <= 23) { + if (i >= DEPOSIT_ANIM_INPUT_00 && i <= DEPOSIT_ANIM_INPUT_01) { if (mAnm[i].isStop()) { mAnm[i].setAnimEnable(false); }