fixed QuestState::load/save

This commit is contained in:
Marc Zinnschlag 2013-12-03 13:51:44 +01:00
parent 0f971163f7
commit 7d8e3ac651

View file

@ -7,13 +7,13 @@
void ESM::QuestState::load (ESMReader &esm) void ESM::QuestState::load (ESMReader &esm)
{ {
mTopic = esm.getHNString ("YETO"); mTopic = esm.getHNString ("YETO");
esm.getHNOT (mState, "QSTAT"); esm.getHNOT (mState, "QSTA");
esm.getHNOT (mFinished, "QFIN"); esm.getHNOT (mFinished, "QFIN");
} }
void ESM::QuestState::save (ESMWriter &esm) const void ESM::QuestState::save (ESMWriter &esm) const
{ {
esm.writeHNString ("YETO", mTopic); esm.writeHNString ("YETO", mTopic);
esm.writeHNT ("QSTAT", mState); esm.writeHNT ("QSTA", mState);
esm.writeHNT ("QFIN", mFinished); esm.writeHNT ("QFIN", mFinished);
} }