diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-03-29 20:56:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 20:56:15 -0400 |
commit | 50e9666e1637b15bd57fd7ee88180e50d2eb5e8c (patch) | |
tree | b1543b6d79695862cb60d686548dd1a996b69e8c /src/frontier_util.c | |
parent | dea07dc8656c8fb32f5b389b9f4f9a30fe26e555 (diff) | |
parent | e8b6b4b65e3b53f5fcf83035b9f848c5ef6378bd (diff) |
Merge branch 'master' into doc-introcred
Diffstat (limited to 'src/frontier_util.c')
-rw-r--r-- | src/frontier_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frontier_util.c b/src/frontier_util.c index 095c750a6..491aef936 100644 --- a/src/frontier_util.c +++ b/src/frontier_util.c @@ -2383,13 +2383,13 @@ void ClearRankingHallRecords(void) { s32 i, j, k; - // BUG: Passing 0 as a pointer instead of a pointer holding a value of 0. - #ifdef BUGFIX - u8 zero = 0; - #define ZERO (&zero) - #else + // UB: Passing 0 as a pointer instead of a pointer holding a value of 0. +#ifdef UBFIX + u8 emptyId[TRAINER_ID_LENGTH] = {0}; + #define ZERO emptyId +#else #define ZERO 0 - #endif +#endif for (i = 0; i < HALL_FACILITIES_COUNT; i++) { |