Skip to content

Commit

Permalink
Fixed crash after player morph
Browse files Browse the repository at this point in the history
  • Loading branch information
deathkiller committed Nov 8, 2023
1 parent 9a9a0b4 commit 5b98cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Jazz2/Actors/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3433,8 +3433,9 @@ namespace Jazz2::Actors
// Refresh animation state
if ((_currentSpecialMove == SpecialMoveType::None) ||
(_currentSpecialMove == SpecialMoveType::Buttstomp && (type == PlayerType::Jazz || type == PlayerType::Spaz || type == PlayerType::Lori))) {
AnimState prevAnim = _currentAnimation->State;
_currentAnimation = nullptr;
SetAnimation(_currentAnimation->State);
SetAnimation(prevAnim);
} else {
_currentAnimation = nullptr;
SetAnimation(AnimState::Fall);
Expand Down

0 comments on commit 5b98cfa

Please sign in to comment.