renamed the script field in DebugProfile to improve consistency

pull/271/head
Marc Zinnschlag 11 years ago
parent 232c6c9ad3
commit f468c53281

@ -10,20 +10,20 @@ unsigned int ESM::DebugProfile::sRecordId = REC_DBGP;
void ESM::DebugProfile::load (ESMReader& esm) void ESM::DebugProfile::load (ESMReader& esm)
{ {
mDescription = esm.getHNString ("DESC"); mDescription = esm.getHNString ("DESC");
mScript = esm.getHNString ("SCRP"); mScriptText = esm.getHNString ("SCRP");
esm.getHNT (mFlags, "FLAG"); esm.getHNT (mFlags, "FLAG");
} }
void ESM::DebugProfile::save (ESMWriter& esm) const void ESM::DebugProfile::save (ESMWriter& esm) const
{ {
esm.writeHNCString ("DESC", mDescription); esm.writeHNCString ("DESC", mDescription);
esm.writeHNCString ("SCRP", mScript); esm.writeHNCString ("SCRP", mScriptText);
esm.writeHNT ("FLAG", mFlags); esm.writeHNT ("FLAG", mFlags);
} }
void ESM::DebugProfile::blank() void ESM::DebugProfile::blank()
{ {
mDescription.clear(); mDescription.clear();
mScript.clear(); mScriptText.clear();
mFlags = 0; mFlags = 0;
} }

@ -23,7 +23,7 @@ namespace ESM
std::string mDescription; std::string mDescription;
std::string mScript; std::string mScriptText;
unsigned int mFlags; unsigned int mFlags;

Loading…
Cancel
Save