From 328d8d55cbd09cc797e1b76d267ed97075ba4ef6 Mon Sep 17 00:00:00 2001 From: HunarPG Date: Tue, 1 Aug 2023 09:13:22 +0530 Subject: [PATCH] Converted sTMHMLearnsets to gTMHMLearnsets and static const u32 to const u32 in src/data/pokemon//tmhm_learnsets.h --- src/data/pokemon/tmhm_learnsets.h | 2 +- src/pokemon.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/pokemon/tmhm_learnsets.h b/src/data/pokemon/tmhm_learnsets.h index 0aa21e85be..ff5722f630 100644 --- a/src/data/pokemon/tmhm_learnsets.h +++ b/src/data/pokemon/tmhm_learnsets.h @@ -4,7 +4,7 @@ // This table determines which TMs and HMs a species is capable of learning. // Each entry is a 64-bit bit array spread across two 32-bit values, with // each bit corresponding to a machine. -static const u32 sTMHMLearnsets[][2] = +const u32 gTMHMLearnsets[][2] = { [SPECIES_NONE] = TMHM_LEARNSET(0), diff --git a/src/pokemon.c b/src/pokemon.c index 330ae3dea0..b9cba94a0f 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -5717,12 +5717,12 @@ u32 CanMonLearnTMHM(struct Pokemon *mon, u8 tm) else if (tm < 32) { u32 mask = 1 << tm; - return sTMHMLearnsets[species][0] & mask; + return gTMHMLearnsets[species][0] & mask; } else { u32 mask = 1 << (tm - 32); - return sTMHMLearnsets[species][1] & mask; + return gTMHMLearnsets[species][1] & mask; } }