1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Fix item weight displaying as 1e+3 for Stendarr's Hammer

This commit is contained in:
scrawl 2014-06-05 18:15:48 +02:00
parent 17f8b49db6
commit 1173957e56

View file

@ -512,7 +512,11 @@ namespace MWGui
std::string ToolTips::toString(const float value)
{
std::ostringstream stream;
stream << std::setprecision(3) << value;
if (value != int(value))
stream << std::setprecision(3);
stream << value;
return stream.str();
}