Update pokemon.c
This commit is contained in:
+1
-1
@@ -3612,7 +3612,7 @@ void SetBoxMonData(struct BoxPokemon *boxMon, s32 field, const void *dataArg)
|
|||||||
break;
|
break;
|
||||||
case MON_DATA_IVS:
|
case MON_DATA_IVS:
|
||||||
{
|
{
|
||||||
#ifdef BUGFIX_SETMONIVS
|
#ifdef BUGFIX
|
||||||
u32 ivs = data[0] | (data[1] << 8) | (data[2] << 16) | (data[3] << 24);
|
u32 ivs = data[0] | (data[1] << 8) | (data[2] << 16) | (data[3] << 24);
|
||||||
#else
|
#else
|
||||||
u32 ivs = *data; // Bug: Only the HP IV and the lower 3 bits of the Attack IV are read. The rest become 0.
|
u32 ivs = *data; // Bug: Only the HP IV and the lower 3 bits of the Attack IV are read. The rest become 0.
|
||||||
|
|||||||
Reference in New Issue
Block a user