From fd7e53e7bf2df8668cd51cbca9fdad80d6f9c798 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Fri, 5 Jan 2024 22:21:44 -0500 Subject: [PATCH] Fix climbing ledges. --- mm/src/code/z_skelanime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;