Skip to content

Commit

Permalink
player: initialize the animation time destination.
Browse files Browse the repository at this point in the history
Otherwise the animation time might not get displayed when the
destination random value would be matching animation progress.
  • Loading branch information
mosra committed Oct 2, 2018
1 parent 4be1a4b commit 646ae4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ struct Data {
Containers::Array<char> animationData;
Animation::Player<std::chrono::nanoseconds, Float> player;

Int elapsedTimeAnimationDestination;
Int elapsedTimeAnimationDestination = -1; /* So it gets updated with 0 as well */

/* The UI is recreated on window resize and we need to repopulate
the info */
Expand Down

0 comments on commit 646ae4e

Please sign in to comment.