1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-23 15:40:42 +00:00

Fix for bug Bug #1098

This commit is contained in:
Thomas 2014-05-26 01:42:11 -04:00
parent 10d835a55c
commit b3ffd5b868
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ namespace MWWorld
virtual bool hasInventoryStore (const Ptr& ptr) const; virtual bool hasInventoryStore (const Ptr& ptr) const;
///< Does this object have an inventory store, i.e. equipment slots? (default implementation: false) ///< Does this object have an inventory store, i.e. equipment slots? (default implementation: false)
virtual void lock (const Ptr& ptr, int lockLevel) const; virtual void lock (const Ptr& ptr, int lockLevel = 0) const;
///< Lock object (default implementation: throw an exception) ///< Lock object (default implementation: throw an exception)
virtual void unlock (const Ptr& ptr) const; virtual void unlock (const Ptr& ptr) const;

View File

@ -2526,7 +2526,7 @@ namespace MWWorld
store.remove(*it, it->getRefData().getCount(), ptr); store.remove(*it, it->getRefData().getCount(), ptr);
} }
} }
closestChest.getClass().unlock(closestChest); closestChest.getClass().lock(closestChest);
} }
} }