Don't update displayed armor rating when there's no player pointer (#8211)

pull/3236/head
Alexei Kotov 2 months ago
parent 1349fdb4f2
commit 636e5ed08b

@ -442,6 +442,9 @@ namespace MWGui
void InventoryWindow::updateArmorRating()
{
if (mPtr.isEmpty())
return;
mArmorRating->setCaptionWithReplacing(
"#{sArmor}: " + MyGUI::utility::toString(static_cast<int>(mPtr.getClass().getArmorRating(mPtr))));
if (mArmorRating->getTextSize().width > mArmorRating->getSize().width)

Loading…
Cancel
Save