From 4dc0cd9d09d5a53bf6d68f0018a8053a1507ee9a Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sat, 22 Mar 2025 21:00:51 -0400 Subject: Debug version now builds OK and all_source compiles (#2343) * Fix missing arg to JUT_ASSERT * Fix some MWCC version diff errors * Compile m_Do_ext, d_demo, actor_mng * Add VSCode task to quickly switch between versions * Unlink magLift for debug * Update the hash of the debug dol The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment. The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol. The DOL now builds OK. * Fix all debug REL dtor splits All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds. * Add genMessage declarations to all HIO subclasses * Fixing more compilation errors * m_Do_mtx 100% on debug Cannot be linked due to weak function name mangling? * Improve various matches * Fix all remaining compilation errors * Fix new compilation errors from main * Fix retail regression * Link f_pc_profile_lst --- src/d/d_save.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/d/d_save.cpp') diff --git a/src/d/d_save.cpp b/src/d/d_save.cpp index 3c14b8696c..3f5c8a2126 100644 --- a/src/d/d_save.cpp +++ b/src/d/d_save.cpp @@ -659,7 +659,7 @@ void dSv_player_item_c::setEmptyBombBag(u8 i_newBomb, u8 i_bombNum) { u8 dSv_player_item_c::checkBombBag(u8 i_itemNo) { u8 bombBags = 0; - for (int i = 0; i < BOMB_BAG_MAX; i++) { + for (int i = 0; i < dSv_player_item_c::BOMB_BAG_MAX; i++) { if (i_itemNo == mItems[i + SLOT_15]) { bombBags++; } -- cgit v1.2.3