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

deque
scrawl 11 years ago
parent 17f8b49db6
commit 1173957e56

@ -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();
}

Loading…
Cancel
Save