Correct ClearRankingHallRecords bugfix
This commit is contained in:
+4
-4
@@ -2383,10 +2383,10 @@ void ClearRankingHallRecords(void)
|
|||||||
{
|
{
|
||||||
s32 i, j, k;
|
s32 i, j, k;
|
||||||
|
|
||||||
// BUG: Passing 0 as a pointer instead of a pointer holding a value of 0.
|
// UB: Passing 0 as a pointer instead of a pointer holding a value of 0.
|
||||||
#ifdef BUGFIX
|
#ifdef UBFIX
|
||||||
u8 zero = 0;
|
u8 emptyId[TRAINER_ID_LENGTH] = {0};
|
||||||
#define ZERO (&zero)
|
#define ZERO emptyId
|
||||||
#else
|
#else
|
||||||
#define ZERO 0
|
#define ZERO 0
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user