summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2024-01-05 22:21:44 -0500
committerGarrett Cox <garrettjcox@gmail.com>2024-05-22 09:04:57 -0500
commitfd7e53e7bf2df8668cd51cbca9fdad80d6f9c798 (patch)
tree8b44f3f3b263c90b3bf79cd205e0f7fe3c4822ad /mm/src/code
parent2332f63f5a9ca4b949f029c11a9744d601d7155f (diff)
Fix climbing ledges.
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/z_skelanime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/src/code/z_skelanime.c b/mm/src/code/z_skelanime.c
index f48124926..1abe62075 100644
--- a/mm/src/code/z_skelanime.c
+++ b/mm/src/code/z_skelanime.c
@@ -1401,8 +1401,8 @@ void PlayerAnimation_Change(PlayState* play, SkelAnime* skelAnime, PlayerAnimati
skelAnime->morphWeight = 0.0f;
}
+ // We need to restore the original animation because player does `this->skelAnime == &anim` type checks.
skelAnime->animation = ogAnim;
- skelAnime->animation = animation;
skelAnime->curFrame = 0.0f;
skelAnime->startFrame = startFrame;
skelAnime->curFrame = startFrame;