summaryrefslogtreecommitdiff
path: root/src/frontier_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontier_util.c')
-rw-r--r--src/frontier_util.c12
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++)
{