mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 06:09:42 +00:00
Init variables
This commit is contained in:
parent
34ba2068b7
commit
da06cd005e
3 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,8 @@ namespace MWLua
|
|||
effect.mRange = ESM::RT_Self;
|
||||
effect.mArea = 0;
|
||||
effect.mDuration = 0;
|
||||
effect.mMagnMin = 0;
|
||||
effect.mMagnMax = 0;
|
||||
res[i + 1] = effect;
|
||||
}
|
||||
return res;
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace
|
|||
misc.mScript = ESM::RefId::deserializeText(scriptId);
|
||||
misc.mData.mWeight = rec["weight"];
|
||||
misc.mData.mValue = rec["value"];
|
||||
misc.mData.mFlags = 0;
|
||||
misc.mRecordFlags = 0;
|
||||
return misc;
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace
|
|||
potion.mScript = ESM::RefId::deserializeText(scriptId);
|
||||
potion.mData.mWeight = rec["weight"];
|
||||
potion.mData.mValue = rec["value"];
|
||||
potion.mData.mAutoCalc = 0;
|
||||
potion.mRecordFlags = 0;
|
||||
sol::table effectsTable = rec["effects"];
|
||||
size_t numEffects = effectsTable.size();
|
||||
|
|
Loading…
Reference in a new issue