diff options
Diffstat (limited to 'src/units.cpp')
-rw-r--r-- | src/units.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/units.cpp b/src/units.cpp index b9a995820..d1861b78b 100644 --- a/src/units.cpp +++ b/src/units.cpp @@ -186,7 +186,7 @@ std::string formatUnit(int value, int type) std::string output; struct UnitLevel pl = ud.levels[0]; ul = ud.levels[1]; - int levelAmount = (int) amount; + int levelAmount = static_cast<int>(amount); int nextAmount = 0; if (ul.count) |