Fix selected weapon HUD durability percentage

pull/541/head
Capostrophic 6 years ago
parent 0fad2449f3
commit 19ce1abcdf

@ -1385,7 +1385,7 @@ namespace MWGui
int durabilityPercent = 100;
if (item.getClass().hasItemHealth(item))
{
durabilityPercent = static_cast<int>(item.getClass().getItemNormalizedHealth(item));
durabilityPercent = static_cast<int>(item.getClass().getItemNormalizedHealth(item) * 100);
}
mHud->setSelectedWeapon(item, durabilityPercent);
mInventoryWindow->setTitle(item.getClass().getName(item));

Loading…
Cancel
Save