diff options
Diffstat (limited to 'src/pokemon')
-rw-r--r-- | src/pokemon/pokemon_1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pokemon/pokemon_1.c b/src/pokemon/pokemon_1.c index 0c0d14d7a..9a92f379d 100644 --- a/src/pokemon/pokemon_1.c +++ b/src/pokemon/pokemon_1.c @@ -16,7 +16,7 @@ //Extracts the lower 16 bits of a 32-bit number #define LOHALF(n) ((n) & 0xFFFF) -extern u8 unk_2000000[]; +extern u8 ewram[]; extern u16 gMoveToLearn; static EWRAM_DATA u8 sLearningMoveTableID = 0; @@ -436,9 +436,9 @@ void CalculateMonStats(struct Pokemon *mon) newMaxHP = (((n + hpEV / 4) * level) / 100) + level + 10; } - unk_2000000[0x160FA] = newMaxHP - oldMaxHP; - if (unk_2000000[0x160FA] == 0) - unk_2000000[0x160FA] = 1; + ewram[0x160FA] = newMaxHP - oldMaxHP; + if (ewram[0x160FA] == 0) + ewram[0x160FA] = 1; SetMonData(mon, MON_DATA_MAX_HP, &newMaxHP); |