(Windows) Fixed an MSVC compiler warning.

This commit is contained in:
Leon Styhre 2021-09-30 20:18:15 +02:00
parent 6ee33634fb
commit 590f080897

View file

@ -103,7 +103,7 @@ void ScrollableContainer::update(int deltaTime)
speedModifier *= mAutoScrollSpeedConstant;
speedModifier /= mResolutionModifier;
mAdjustedAutoScrollSpeed = speedModifier;
mAdjustedAutoScrollSpeed = static_cast<int>(speedModifier);
}
if (mAdjustedAutoScrollSpeed < 0)