mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-16 16:06:45 +00:00
Init some missing variables
This commit is contained in:
parent
7cce341822
commit
03cdffb555
2 changed files with 3 additions and 0 deletions
|
@ -320,6 +320,8 @@ namespace ESSImport
|
||||||
esm.startRecord(ESM::REC_CSTA);
|
esm.startRecord(ESM::REC_CSTA);
|
||||||
ESM::CellState csta;
|
ESM::CellState csta;
|
||||||
csta.mHasFogOfWar = 0;
|
csta.mHasFogOfWar = 0;
|
||||||
|
csta.mLastRespawn.mDay = 0;
|
||||||
|
csta.mLastRespawn.mHour = 0;
|
||||||
csta.mId = esmcell.getCellId();
|
csta.mId = esmcell.getCellId();
|
||||||
csta.mId.save(esm);
|
csta.mId.save(esm);
|
||||||
// TODO csta.mLastRespawn;
|
// TODO csta.mLastRespawn;
|
||||||
|
|
|
@ -368,6 +368,7 @@ namespace ESSImport
|
||||||
profile.mInGameTime.mGameHour = context.mHour;
|
profile.mInGameTime.mGameHour = context.mHour;
|
||||||
profile.mInGameTime.mMonth = context.mMonth;
|
profile.mInGameTime.mMonth = context.mMonth;
|
||||||
profile.mInGameTime.mYear = context.mYear;
|
profile.mInGameTime.mYear = context.mYear;
|
||||||
|
profile.mTimePlayed = 0;
|
||||||
profile.mPlayerCell = header.mGameData.mCurrentCell.toString();
|
profile.mPlayerCell = header.mGameData.mCurrentCell.toString();
|
||||||
if (context.mPlayerBase.mClass == "NEWCLASSID_CHARGEN")
|
if (context.mPlayerBase.mClass == "NEWCLASSID_CHARGEN")
|
||||||
profile.mPlayerClassName = context.mCustomPlayerClassName;
|
profile.mPlayerClassName = context.mCustomPlayerClassName;
|
||||||
|
|
Loading…
Reference in a new issue