summaryrefslogtreecommitdiff
path: root/src/code/z_sub_s.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2024-03-23 22:04:07 +1100
committerGitHub <noreply@github.com>2024-03-23 08:04:07 -0300
commit5bef89a6ff33c3e84ad58d201bd1996a0d9f7db4 (patch)
tree39cc7a06f0ea32f31ab88096e7da179ceeef7571 /src/code/z_sub_s.c
parenta7fa8cc241d7f6e08d3744644cf8e93599f190a0 (diff)
Misc Cleanup 2 (#1521)
* begin cleanup * more cleanup * more cleanup * more cleanup * more cleanup * more cleanup * fake matches * more cleanup * more cleanup * small thing * PR Review * PR Review
Diffstat (limited to 'src/code/z_sub_s.c')
-rw-r--r--src/code/z_sub_s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_sub_s.c b/src/code/z_sub_s.c
index cdfd9273a..7117e1da2 100644
--- a/src/code/z_sub_s.c
+++ b/src/code/z_sub_s.c
@@ -25,7 +25,7 @@ EnDoor* SubS_FindDoor(PlayState* play, s32 switchFlag) {
actor = SubS_FindActor(play, actor, ACTORCAT_DOOR, ACTOR_EN_DOOR);
door = (EnDoor*)actor;
- if (actor == NULL) {
+ if (door == NULL) {
break;
}
@@ -541,7 +541,7 @@ s32 SubS_ChangeAnimationByInfoS(SkelAnime* skelAnime, AnimationInfoS* animationI
endFrame = Animation_GetLastFrame(&animationInfo->animation->common);
}
startFrame = animationInfo->startFrame;
- if (startFrame >= endFrame || startFrame < 0) {
+ if ((startFrame >= endFrame) || (startFrame < 0)) {
return false;
}
if (animationInfo->playSpeed < 0.0f) {