rename: literal 0x98 → SPECIES_BLANK in 373A0.c

Four sites in func_800367A0 (case 0x33 and case 0x32) where
arg1 (a species ID) is checked against the upper-bound sentinel
before decrementing to a 0-indexed array. Introduces
#include "pokemon.h" in this file.

Other 0x98 occurrences in 373A0.c (lines 24, 31, 41) are
D_80077970[] data table entries (per-species animation/sound
parameter values), not species IDs — left untouched.

Callers: func_80048408-area (src/3D140.c:857, etc.)
Still matching: md5 ed1378bc… (verified by `make`)
This commit is contained in:
csaldiasdev
2026-07-05 20:20:39 -04:00
parent 5c958f2892
commit c274fd455d

View File

@@ -1,4 +1,5 @@
#include "373A0.h"
#include "include/pokemon.h"
#include "src/4CBC0.h"
#include "src/373A0.h"
#include "src/3D140.h"
@@ -210,11 +211,11 @@ s32 func_800367A0(u32 arg0, s32 arg1, s32 arg2) {
return 0;
case 0x33:
if (arg1 >= 0x98) {
if (arg1 >= SPECIES_BLANK) {
arg1 = 3;
}
if ((arg1 > 0) && (arg1 < 0x98)) {
if ((arg1 > 0) && (arg1 < SPECIES_BLANK)) {
arg1--;
} else {
arg1 = 0;
@@ -242,11 +243,11 @@ s32 func_800367A0(u32 arg0, s32 arg1, s32 arg2) {
return func_80039024(D_800FC6A4, D_800FC6A8, 0x20, 0x80, 0x80, -1);
}
if (arg1 >= 0x98) {
if (arg1 >= SPECIES_BLANK) {
arg1 = 2;
}
if ((arg1 > 0) && (arg1 < 0x98)) {
if ((arg1 > 0) && (arg1 < SPECIES_BLANK)) {
arg1--;
} else {
arg1 = 0;