Skip to content

Commit

Permalink
Fix player track null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Jul 9, 2024
1 parent b4ebee4 commit 9f2c249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Animation/PlayerTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void PlayerTrack::AssignTrack(Track* track, PlayerTrackObject object) {
}

// Init
bool firstTime = playerTrack.ptr() == nullptr;
bool firstTime = !playerTrack.isAlive();
if (!playerTrack) {
playerTrack = Create(object);
}
Expand Down

0 comments on commit 9f2c249

Please # to comment.