1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 09:53:50 +00:00

removed the _freeSlot method which is now unneeded

This commit is contained in:
scrawl 2012-05-15 22:01:09 +02:00
parent 0063387979
commit d3a53ae0b8
3 changed files with 1 additions and 11 deletions

View file

@ -231,7 +231,7 @@ namespace MWGui
MWWorld::ContainerStoreIterator it = invStore.getSlot(slot);
if (it != invStore.end() && *it == item)
{
invStore._freeSlot(slot);
invStore.equip(slot, invStore.end());
return;
}
}

View file

@ -97,13 +97,6 @@ void MWWorld::InventoryStore::equip (int slot, const ContainerStoreIterator& ite
flagAsModified();
}
void MWWorld::InventoryStore::_freeSlot(int slot)
{
mSlots[slot] = end();
flagAsModified();
}
MWWorld::ContainerStoreIterator MWWorld::InventoryStore::getSlot (int slot)
{
if (slot<0 || slot>=static_cast<int> (mSlots.size()))

View file

@ -60,9 +60,6 @@ namespace MWWorld
void equip (int slot, const ContainerStoreIterator& iterator);
///< \note \a iteartor can be an end-iterator
void _freeSlot(int slot);
///< this method is dangerous, as it doesn't do re-stacking items - you probably want to use equip()
ContainerStoreIterator getSlot (int slot);
void autoEquip (const MWMechanics::NpcStats& stats);