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:
parent
17f8b49db6
commit
1173957e56
1 changed files with 5 additions and 1 deletions
|
@ -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…
Reference in a new issue