diff options
| author | swekka <swekka@proton.me> | 2025-09-15 20:48:26 +0200 |
|---|---|---|
| committer | swekka <swekka@proton.me> | 2025-09-15 20:48:26 +0200 |
| commit | efffd790430d3580f8258ecfcba44929307abdf7 (patch) | |
| tree | 26f252f6c8d93986ae7b543e2f08610164f265a6 /src | |
| parent | 0ac75a04a62a968b517e6e788d397dc2161575a1 (diff) | |
use SubtypeData for while loop
Diffstat (limited to 'src')
| -rw-r--r-- | src/REL/d/a/obj/d_a_obj_block_underground.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/REL/d/a/obj/d_a_obj_block_underground.cpp b/src/REL/d/a/obj/d_a_obj_block_underground.cpp index 0f8452c5..92b44cb0 100644 --- a/src/REL/d/a/obj/d_a_obj_block_underground.cpp +++ b/src/REL/d/a/obj/d_a_obj_block_underground.cpp @@ -123,13 +123,13 @@ int dAcOBlockUnderground::actorCreate() { bool success = false; s32 newSubtype = 0; - u8 currentSubtype = getSubtype(); - const s32 *subtype = &sSubtypeData[0].mSubtype; + u8 subtype = getSubtype(); + const SubtypeData *subtypeData = &sSubtypeData[0]; while ((!success && newSubtype <= 3)) { - if (currentSubtype == *subtype) { + if (subtype == subtypeData->mSubtype) { success = true; } else { - subtype += 3; + subtypeData++; newSubtype++; } } |
