Minor cleanup

coverity_scan^2
scrawl 9 years ago
parent 85b0c4393b
commit 04b537bf5f

@ -77,9 +77,8 @@ namespace ESM
void Dialogue::readInfo(ESMReader &esm, bool merge)
{
ESM::DialInfo info;
info.loadId(esm);
bool isDeleted = false;
info.loadData(esm, isDeleted);
info.load(esm, isDeleted);
if (!merge || mInfo.empty())
{

@ -9,18 +9,9 @@ namespace ESM
unsigned int DialInfo::sRecordId = REC_INFO;
void DialInfo::load(ESMReader &esm, bool &isDeleted)
{
loadId(esm);
loadData(esm, isDeleted);
}
void DialInfo::loadId(ESMReader &esm)
{
mId = esm.getHNString("INAM");
}
void DialInfo::loadData(ESMReader &esm, bool &isDeleted)
{
isDeleted = false;
mQuestStatus = QS_None;

@ -106,11 +106,7 @@ struct DialInfo
};
void load(ESMReader &esm, bool &isDeleted);
///< Loads all sub-records of Info record
void loadId(ESMReader &esm);
///< Loads only Id of Info record (INAM sub-record)
void loadData(ESMReader &esm, bool &isDeleted);
///< Loads all sub-records of Info record, except INAM sub-record
///< Loads Info record
void save(ESMWriter &esm, bool isDeleted = false) const;

Loading…
Cancel
Save