1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Add item count to ManualRef constructor as optional argument

This commit is contained in:
Emanuel Guevel 2013-10-20 15:49:33 +02:00
parent f4f2586e8c
commit 0691978603

View file

@ -37,7 +37,7 @@ namespace MWWorld
public:
ManualRef (const MWWorld::ESMStore& store, const std::string& name)
ManualRef (const MWWorld::ESMStore& store, const std::string& name, const int count=1)
{
// create
if (!create (store.get<ESM::Activator>(), name) &&
@ -74,6 +74,7 @@ namespace MWWorld
cellRef.mTeleport = false;
cellRef.mLockLevel = 0;
cellRef.mReferenceBlocked = 0;
mPtr.getRefData().setCount(count);
}
const Ptr& getPtr() const