From c12d57cb75ac228ba40d8285f130c71ae6297d47 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 7 Dec 2022 21:37:38 +0100 Subject: [PATCH] (Windows) Fixed an MSVC compiler warning. --- es-app/src/views/SystemView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 823c72b3d..e3f17aac8 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -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(animTime)); } setAnimation(anim, 0, nullptr, false, 0);