Fix climbing ledges.

This commit is contained in:
louist103 2024-01-05 22:21:44 -05:00 committed by Garrett Cox
parent 2332f63f5a
commit fd7e53e7bf

View File

@ -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;