mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Make AI package items to be editable when a new row is added.
This commit is contained in:
parent
f7c7aeecb3
commit
82bc666e00
@ -1363,7 +1363,13 @@ namespace CSMWorld
|
|||||||
std::vector<ESM::AIPackage>& list = actor.mAiPackage.mList;
|
std::vector<ESM::AIPackage>& list = actor.mAiPackage.mList;
|
||||||
|
|
||||||
ESM::AIPackage newRow;
|
ESM::AIPackage newRow;
|
||||||
newRow.mType = ESM::AI_CNDT;
|
newRow.mType = ESM::AI_Wander;
|
||||||
|
newRow.mWander.mDistance = 0;
|
||||||
|
newRow.mWander.mDuration = 0;
|
||||||
|
newRow.mWander.mTimeOfDay = 0;
|
||||||
|
for (int i = 0; i < 8; ++i)
|
||||||
|
newRow.mWander.mIdle[i] = 0;
|
||||||
|
newRow.mWander.mShouldRepeat = 0;
|
||||||
newRow.mCellName = "";
|
newRow.mCellName = "";
|
||||||
|
|
||||||
if (position >= (int)list.size())
|
if (position >= (int)list.size())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user