1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 14:45:35 +00:00

Cast displayed health to int in saved game dialog (#7656)

This commit is contained in:
Alexei Kotov 2023-11-04 02:12:15 +03:00
parent c1f7a9c258
commit 515a90e9e0

View file

@ -413,8 +413,8 @@ namespace MWGui
text << Misc::fileTimeToString(mCurrentSlot->mTimeStamp, "%Y.%m.%d %T") << "\n";
if (mCurrentSlot->mProfile.mMaximumHealth > 0)
text << std::fixed << std::setprecision(0) << "#{sHealth} " << mCurrentSlot->mProfile.mCurrentHealth << "/"
<< mCurrentSlot->mProfile.mMaximumHealth << "\n";
text << "#{sHealth} " << static_cast<int>(mCurrentSlot->mProfile.mCurrentHealth) << "/"
<< static_cast<int>(mCurrentSlot->mProfile.mMaximumHealth) << "\n";
text << "#{sLevel} " << mCurrentSlot->mProfile.mPlayerLevel << "\n";
text << "#{sCell=" << mCurrentSlot->mProfile.mPlayerCellName << "}\n";