Accept a ConstPtr in ContainerStore::addNewStack

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

@ -336,7 +336,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::addImp (const Ptr& ptr,
return addNewStack(ptr, count);
}
MWWorld::ContainerStoreIterator MWWorld::ContainerStore::addNewStack (const Ptr& ptr, int count)
MWWorld::ContainerStoreIterator MWWorld::ContainerStore::addNewStack (const ConstPtr& ptr, int count)
{
ContainerStoreIterator it = begin();

@ -142,7 +142,7 @@ namespace MWWorld
int count (const std::string& id);
protected:
ContainerStoreIterator addNewStack (const Ptr& ptr, int count);
ContainerStoreIterator addNewStack (const ConstPtr& ptr, int count);
///< Add the item to this container (do not try to stack it onto existing items)
virtual void flagAsModified();

Loading…
Cancel
Save