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:
parent
c1f7a9c258
commit
515a90e9e0
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue