summaryrefslogtreecommitdiff
path: root/src/frontier_util.c
diff options
context:
space:
mode:
authorKurausukun <lord.uber1@gmail.com>2021-03-29 18:36:18 -0400
committerKurausukun <lord.uber1@gmail.com>2021-03-29 18:36:18 -0400
commit102582a3dff87769379acca9d50fe29f6f41d337 (patch)
treef4b2b95ab5817efe5fda675741a6dfb9c40d1275 /src/frontier_util.c
parent79a8eb481f08a035d2b357b5f9c9a57cb54e99da (diff)
parentc40fb9288cf02f2cba1b72c7377d6272a0eef6f2 (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into fr_doc
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++)
{