mirror of
https://github.com/pret/pokestadium.git
synced 2026-09-27 20:36:36 -05:00
rename: literal 190 → SPECIES_EXTENDED_MAX in func_80022A60
Upper bound of the wider species ID range accepted by func_80022A60 (maps to D_800732FF). Returns SPECIES_BLANK (already named) on out-of-range. Callers: func_80021D9C, func_800228F0 (src/232C0.c:121, others) Still matching: md5 ed1378bc… (verified by `make`)
This commit is contained in:
@@ -122,7 +122,7 @@ u8 func_80022A38(s32 arg0) {
|
||||
}
|
||||
|
||||
s32 func_80022A60(s32 arg0) {
|
||||
if ((arg0 <= 0) || (arg0 > 190)) {
|
||||
if ((arg0 <= 0) || (arg0 > SPECIES_EXTENDED_MAX)) {
|
||||
return SPECIES_BLANK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user