forked from teamnwah/openmw-tes3coop
Accept a ConstPtr in ContainerStore::addNewStack
This commit is contained in:
parent
e1c6261fee
commit
3856f931db
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue