From f98d003e354a1792117b7cbc771d1dd91475a156 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 17:48:29 +0200 Subject: Fix most old style cast except manaserv and libxml2 defines. --- src/units.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/units.cpp') 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(amount); int nextAmount = 0; if (ul.count) -- cgit v1.2.3-60-g2f50