diff --git a/src/Magnum/Animation/Player.hpp b/src/Magnum/Animation/Player.hpp index 8a487d01c..5774dff18 100644 --- a/src/Magnum/Animation/Player.hpp +++ b/src/Magnum/Animation/Player.hpp @@ -195,14 +195,14 @@ template Containers::Optional> playe std::chrono::duration doesn't have operator bool, so I need to compare to default-constructed value. Ugh. */ - if(state == State::Paused && (stopPauseTime != T{})) { + if(state == State::Paused && stopPauseTime != T{}) { startTime = stopPauseTime - startTime; timeToUse = startTime; stopPauseTime = {}; /* The animation was stopped by the user right before this iteration, "park" the animation to the initial time */ - } else if(state == State::Stopped && (stopPauseTime != T{})) { + } else if(state == State::Stopped && stopPauseTime != T{}) { timeToUse = {}; startTime = {}; stopPauseTime = {};