1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

Fix merchant repair menu allowing repair of repair items

This commit is contained in:
scrawl 2013-04-03 21:13:01 +02:00
parent 8dd7f0c53a
commit 8ca88d1a70

View File

@ -40,7 +40,8 @@ void MerchantRepair::startRepair(const MWWorld::Ptr &actor)
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer(); MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayer().getPlayer();
MWWorld::ContainerStore& store = MWWorld::Class::get(player).getContainerStore(player); MWWorld::ContainerStore& store = MWWorld::Class::get(player).getContainerStore(player);
for (MWWorld::ContainerStoreIterator iter (store.begin()); int categories = MWWorld::ContainerStore::Type_Weapon | MWWorld::ContainerStore::Type_Armor;
for (MWWorld::ContainerStoreIterator iter (store.begin(categories));
iter!=store.end(); ++iter) iter!=store.end(); ++iter)
{ {
if (MWWorld::Class::get(*iter).hasItemHealth(*iter)) if (MWWorld::Class::get(*iter).hasItemHealth(*iter))