diff options
| author | Max Roncace <me@caseif.net> | 2025-11-26 23:01:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-26 20:01:55 -0800 |
| commit | 90133fb1cb3fa78e4e30f83c99df465a1666dddd (patch) | |
| tree | 11776aefb34ab0608978135b49ca54ab13dfac99 /include | |
| parent | 3080360a2a3b845078375f303cea187bf9e52976 (diff) | |
Small d_a_mg_rod fixes (#2874)
Diffstat (limited to 'include')
| -rw-r--r-- | include/d/d_com_inf_game.h | 4 | ||||
| -rw-r--r-- | include/d/d_event_debug.h | 2 | ||||
| -rw-r--r-- | include/d/d_save.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/d/d_com_inf_game.h b/include/d/d_com_inf_game.h index 40171a164e..04a5fc889a 100644 --- a/include/d/d_com_inf_game.h +++ b/include/d/d_com_inf_game.h @@ -1910,7 +1910,7 @@ inline void dComIfGs_onLightDropGetFlag(u8 i_nowLevel) { g_dComIfG_gameInfo.info.getPlayer().getLightDrop().onLightDropGetFlag(i_nowLevel); } -inline void dComIfGs_setTmpReg(const u16 i_reg, u8 i_no) { +inline void dComIfGs_setTmpReg(u16 i_reg, u8 i_no) { g_dComIfG_gameInfo.info.getTmp().setEventReg(i_reg, i_no); } @@ -1922,7 +1922,7 @@ inline u8 dComIfGs_getEventReg(u16 reg) { return g_dComIfG_gameInfo.info.getEvent().getEventReg(reg); } -inline void dComIfGs_setEventReg(const u16 reg, u8 value) { +inline void dComIfGs_setEventReg(u16 reg, u8 value) { g_dComIfG_gameInfo.info.getEvent().setEventReg(reg, value); } diff --git a/include/d/d_event_debug.h b/include/d/d_event_debug.h index 4c6a8776af..41b679b321 100644 --- a/include/d/d_event_debug.h +++ b/include/d/d_event_debug.h @@ -20,7 +20,7 @@ struct dEvDb_reg_c { /* 0x00 */ char* mFlagName; /* 0x04 */ char* mFlagDescription; /* 0x08 */ char* mFlagAuthor; - /* 0x0C */ const u16 mFlagValue; + /* 0x0C */ u16 mFlagValue; /* 0x10 */ char* mArea; // Area in the game where flag is used /* 0x14 */ u8 mRootReg; /* 0x15 */ u8 field_0x15; diff --git a/include/d/d_save.h b/include/d/d_save.h index a757606a36..a30d2d62c4 100644 --- a/include/d/d_save.h +++ b/include/d/d_save.h @@ -661,7 +661,7 @@ public: void onEventBit(const u16 i_no); void offEventBit(const u16 i_no); int isEventBit(const u16 i_no) const; - void setEventReg(const u16 i_reg, u8 i_no); + void setEventReg(u16 i_reg, u8 i_no); u8 getEventReg(u16 i_reg) const; void* getPEventBit() { return (void*)mEvent; } |
