From 04a57bb7917c08f63afbce403e664145a1e9c69f Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Fri, 24 Jun 2022 21:35:22 -0300 Subject: [PATCH] Update pokemon.c --- src/pokemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon.c b/src/pokemon.c index 168ccd318..92e9cb851 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -3612,7 +3612,7 @@ void SetBoxMonData(struct BoxPokemon *boxMon, s32 field, const void *dataArg) break; case MON_DATA_IVS: { -#ifdef BUGFIX_SETMONIVS +#ifdef BUGFIX u32 ivs = data[0] | (data[1] << 8) | (data[2] << 16) | (data[3] << 24); #else u32 ivs = *data; // Bug: Only the HP IV and the lower 3 bits of the Attack IV are read. The rest become 0.