diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index b8673420d..910ad4c0e 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2124,7 +2124,7 @@ void cPlayer::UpdateMovementStats(const Vector3d & a_DeltaPos, bool a_PreviousIs else if (a_DeltaPos.y < 0.0) { // Increment statistic - m_Stats.AddValue(statDistFallen, (StatValue)(abs(a_DeltaPos.y) * 100 + 0.5)); + m_Stats.AddValue(statDistFallen, static_cast(std::abs(a_DeltaPos.y) * 100 + 0.5)); } // TODO: good opportunity to detect illegal flight (check for falling tho) }