Fix weapons not appearing in Enchantable filter

actorid
scrawl 12 years ago
parent 0c7f48ec8a
commit 9a43927078

@ -106,6 +106,7 @@ namespace MWGui
if ((mFilter & Filter_OnlyEnchantable) && (item.mFlags & ItemStack::Flag_Enchanted
|| (base.getTypeName() != typeid(ESM::Armor).name()
&& base.getTypeName() != typeid(ESM::Clothing).name()
&& base.getTypeName() != typeid(ESM::Weapon).name()
&& base.getTypeName() != typeid(ESM::Book).name())))
return false;
if ((mFilter & Filter_OnlyEnchantable) && base.getTypeName() == typeid(ESM::Book).name()

Loading…
Cancel
Save