From 03cdffb5558692eba571de966c8c760f0dfa7dfa Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 3 Jul 2022 00:13:04 +0400 Subject: [PATCH] Init some missing variables --- apps/essimporter/converter.cpp | 2 ++ apps/essimporter/importer.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/essimporter/converter.cpp b/apps/essimporter/converter.cpp index 0d5b391112..ecd315f477 100644 --- a/apps/essimporter/converter.cpp +++ b/apps/essimporter/converter.cpp @@ -320,6 +320,8 @@ namespace ESSImport esm.startRecord(ESM::REC_CSTA); ESM::CellState csta; csta.mHasFogOfWar = 0; + csta.mLastRespawn.mDay = 0; + csta.mLastRespawn.mHour = 0; csta.mId = esmcell.getCellId(); csta.mId.save(esm); // TODO csta.mLastRespawn; diff --git a/apps/essimporter/importer.cpp b/apps/essimporter/importer.cpp index 577185b8d9..f0c74a7333 100644 --- a/apps/essimporter/importer.cpp +++ b/apps/essimporter/importer.cpp @@ -368,6 +368,7 @@ namespace ESSImport profile.mInGameTime.mGameHour = context.mHour; profile.mInGameTime.mMonth = context.mMonth; profile.mInGameTime.mYear = context.mYear; + profile.mTimePlayed = 0; profile.mPlayerCell = header.mGameData.mCurrentCell.toString(); if (context.mPlayerBase.mClass == "NEWCLASSID_CHARGEN") profile.mPlayerClassName = context.mCustomPlayerClassName;