properly use subtype enum

This commit is contained in:
lepelog
2025-12-04 23:26:13 +01:00
parent 30b1ef3659
commit f0889aadb6
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ inline bool checkProfile(u16 prof, u32 target) {
}
int dTgInsect_c::actorPostCreate() {
s32 subtype = mParams >> 4 & 0xF;
Subtype subtype = getSubtype();
// ??? doesn't match without the double comparison
if (subtype == SUBTYPE_WOODLAND_RHINO_BEETLE
|| subtype == SUBTYPE_WOODLAND_RHINO_BEETLE