mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 08:53:50 +00:00
Add item count to ManualRef constructor as optional argument
This commit is contained in:
parent
f4f2586e8c
commit
0691978603
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@ namespace MWWorld
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ManualRef (const MWWorld::ESMStore& store, const std::string& name)
|
ManualRef (const MWWorld::ESMStore& store, const std::string& name, const int count=1)
|
||||||
{
|
{
|
||||||
// create
|
// create
|
||||||
if (!create (store.get<ESM::Activator>(), name) &&
|
if (!create (store.get<ESM::Activator>(), name) &&
|
||||||
|
@ -74,6 +74,7 @@ namespace MWWorld
|
||||||
cellRef.mTeleport = false;
|
cellRef.mTeleport = false;
|
||||||
cellRef.mLockLevel = 0;
|
cellRef.mLockLevel = 0;
|
||||||
cellRef.mReferenceBlocked = 0;
|
cellRef.mReferenceBlocked = 0;
|
||||||
|
mPtr.getRefData().setCount(count);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Ptr& getPtr() const
|
const Ptr& getPtr() const
|
||||||
|
|
Loading…
Reference in a new issue