(Windows) Fixed an MSVC compiler warning.

This commit is contained in:
Leon Styhre 2022-12-07 21:37:38 +01:00
parent 2d24230a48
commit c12d57cb75

View file

@ -437,8 +437,9 @@ void SystemView::onCursorChanged(const CursorState& state)
else {
// Instant.
updateGameCount();
anim = new LambdaAnimation(
[this, startPos, endPos, posMax](float t) { mCamOffset = endPos; }, animTime);
anim =
new LambdaAnimation([this, startPos, endPos, posMax](float t) { mCamOffset = endPos; },
static_cast<int>(animTime));
}
setAnimation(anim, 0, nullptr, false, 0);