mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Fix restacking unequipped items
This commit is contained in:
parent
da85f3e575
commit
49125fa26e
1 changed files with 3 additions and 3 deletions
|
@ -443,6 +443,9 @@ MWWorld::ContainerStoreIterator MWWorld::InventoryStore::unequipSlot(int slot, c
|
|||
{
|
||||
ContainerStoreIterator retval = it;
|
||||
|
||||
// empty this slot
|
||||
mSlots[slot] = end();
|
||||
|
||||
if (restack) {
|
||||
// restack item previously in this slot
|
||||
for (MWWorld::ContainerStoreIterator iter (begin()); iter != end(); ++iter)
|
||||
|
@ -457,9 +460,6 @@ MWWorld::ContainerStoreIterator MWWorld::InventoryStore::unequipSlot(int slot, c
|
|||
}
|
||||
}
|
||||
|
||||
// empty this slot
|
||||
mSlots[slot] = end();
|
||||
|
||||
if (actor.getRefData().getHandle() == "player")
|
||||
{
|
||||
// Unset OnPCEquip Variable on item's script, if it has a script with that variable declared
|
||||
|
|
Loading…
Reference in a new issue