mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Accept a ConstPtr in ContainerStore::addNewStack
This commit is contained in:
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…
x
Reference in New Issue
Block a user