Accept a ConstPtr in InventoryStore::isEquipped

openmw-38
scrawl 9 years ago
parent 3856f931db
commit f35ab12979

@ -742,7 +742,7 @@ void MWWorld::InventoryStore::clear()
ContainerStore::clear();
}
bool MWWorld::InventoryStore::isEquipped(const MWWorld::Ptr &item)
bool MWWorld::InventoryStore::isEquipped(const MWWorld::ConstPtr &item)
{
for (int i=0; i < MWWorld::InventoryStore::Slots; ++i)
{

@ -141,7 +141,7 @@ namespace MWWorld
void equip (int slot, const ContainerStoreIterator& iterator, const Ptr& actor);
///< \warning \a iterator can not be an end()-iterator, use unequip function instead
bool isEquipped(const MWWorld::Ptr& item);
bool isEquipped(const MWWorld::ConstPtr& item);
///< Utility function, returns true if the given item is equipped in any slot
void setSelectedEnchantItem(const ContainerStoreIterator& iterator);

Loading…
Cancel
Save