From 5c958f2892cbde490f4584df85fa9bbd5e514c36 Mon Sep 17 00:00:00 2001 From: csaldiasdev Date: Sun, 5 Jul 2026 20:18:39 -0400 Subject: [PATCH] =?UTF-8?q?rename:=20literal=20190=20=E2=86=92=20SPECIES?= =?UTF-8?q?=5FEXTENDED=5FMAX=20in=20func=5F80022A60?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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`) --- src/232C0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/232C0.c b/src/232C0.c index ccbc046..e85c5b0 100644 --- a/src/232C0.c +++ b/src/232C0.c @@ -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; }