mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +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);
|
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();
|
ContainerStoreIterator it = begin();
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ namespace MWWorld
|
|||||||
int count (const std::string& id);
|
int count (const std::string& id);
|
||||||
|
|
||||||
protected:
|
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)
|
///< Add the item to this container (do not try to stack it onto existing items)
|
||||||
|
|
||||||
virtual void flagAsModified();
|
virtual void flagAsModified();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user