Allow weight tooltips for gold and keys if not 0

coverity_scan^2
Allofich 8 years ago
parent caf025f93d
commit 4f5d676b4e

@ -159,11 +159,9 @@ namespace MWClass
std::string text;
text += MWGui::ToolTips::getValueString(ref->mBase->mData.mWeight, "#{sWeight}");
if (!gold && !ref->mBase->mData.mIsKey)
{
text += "\n#{sWeight}: " + MWGui::ToolTips::toString(ref->mBase->mData.mWeight);
text += MWGui::ToolTips::getValueString(getValue(ptr), "#{sValue}");
}
if (MWBase::Environment::get().getWindowManager()->getFullHelp()) {
text += MWGui::ToolTips::getCellRefString(ptr.getCellRef());

Loading…
Cancel
Save