summaryrefslogtreecommitdiff
path: root/src/units.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/units.cpp')
-rw-r--r--src/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/units.cpp b/src/units.cpp
index ec4084126..63db99273 100644
--- a/src/units.cpp
+++ b/src/units.cpp
@@ -221,7 +221,7 @@ static std::string formatUnit(const int value, const int type)
if (ul.count)
levelAmount /= ul.count;
- amount -= levelAmount * ul.count;
+ amount -= static_cast<double>(levelAmount * ul.count);
if (amount > 0)
{