Skip to content

Commit dbeaa25

Browse files
committed
Fix mistakes
1 parent 63f5c97 commit dbeaa25

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

apps/openmw/mwmechanics/aiescort.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace MWMechanics
2626
{
2727
AiEscort::AiEscort(ESM::RefNum actor, std::string_view cellId, int duration, float x, float y, float z, bool repeat)
2828
: TypedAiPackage<AiEscort>(repeat)
29+
, mCellId(cellId)
2930
, mX(x)
3031
, mY(y)
3132
, mZ(z)

apps/openmw/mwmechanics/aifollow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace MWMechanics
3939
, mX(x)
4040
, mY(y)
4141
, mZ(z)
42+
, mCellId(cellId)
4243
, mActive(false)
4344
, mFollowIndex(mFollowIndexCounter++)
4445
{

components/esm3/activespells.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace ESM
125125
if (format <= MaxActorIdSaveGameFormatVersion)
126126
esm.getHNT(params.mCaster.mIndex, "CAST");
127127
else
128-
params.mCaster = esm.getFormId("CAST");
128+
params.mCaster = esm.getFormId(true, "CAST");
129129
params.mDisplayName = esm.getHNString("DISP");
130130
if (format <= MaxClearModifiersFormatVersion)
131131
params.mFlags = Compatibility::ActiveSpells::Type_Temporary_Flags;
@@ -194,7 +194,7 @@ namespace ESM
194194
else if (esm.peekNextSub("ARG_"))
195195
effect.mArg = esm.getHNRefId("ARG_");
196196
else if (esm.peekNextSub("SUM_"))
197-
effect.mArg = esm.getFormId("SUM_");
197+
effect.mArg = esm.getFormId(true, "SUM_");
198198
esm.getHNT(effect.mMagnitude, "MAGN");
199199
if (format <= MaxClearModifiersFormatVersion)
200200
{

0 commit comments

Comments
 (0)