diff options
| author | inspectredc <78732756+inspectredc@users.noreply.github.com> | 2024-05-05 21:29:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-05 17:29:59 -0300 |
| commit | d08678a5acd8ebdb5f58a59d12fdcebefe87470c (patch) | |
| tree | 2662870bf26c2233a40195d5138fed76d74e0e8d /src/engine/fox_effect.c | |
| parent | 455aa0aa2c35da2dfca64c24a5cc2c36f488c110 (diff) | |
Use array count for more things (#230)
* array count more things
* fix array count error
* undo array count for later
---------
Co-authored-by: Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com>
Diffstat (limited to 'src/engine/fox_effect.c')
| -rw-r--r-- | src/engine/fox_effect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/fox_effect.c b/src/engine/fox_effect.c index 53d4a472..a6d9b65c 100644 --- a/src/engine/fox_effect.c +++ b/src/engine/fox_effect.c @@ -632,7 +632,7 @@ void func_effect_800794CC(f32 xPos, f32 yPos, f32 zPos, f32 scale2) { void func_effect_8007953C(f32 xPos, f32 yPos, f32 zPos, f32 scale2) { s32 i; - for (i = 79; i >= 0; i--) { + for (i = (ARRAY_COUNT(gEffects) - 20) - 1; i >= 0; i--) { if (gEffects[i].obj.status == OBJ_FREE) { func_effect_8007905C(&gEffects[i], xPos, yPos, zPos, scale2, 0); break; |
