1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 07:15:32 +00:00

Rename a variable to make it less confusing.

(cherry picked from commit 7c007d9c6d)
This commit is contained in:
cc9cii 2015-10-31 20:45:16 +11:00
parent 894f3a9418
commit 26195dc5fe

View file

@ -154,14 +154,14 @@ void CSMDoc::WriteDialogueCollectionStage::perform (int stage, Messages& message
for (CSMWorld::InfoCollection::RecordConstIterator iter (range.first); iter!=range.second; for (CSMWorld::InfoCollection::RecordConstIterator iter (range.first); iter!=range.second;
++iter) ++iter)
{ {
CSMWorld::RecordBase::State state = iter->mState; CSMWorld::RecordBase::State infoState = iter->mState;
if (state==CSMWorld::RecordBase::State_Deleted) if (infoState==CSMWorld::RecordBase::State_Deleted)
{ {
/// \todo wrote record with delete flag /// \todo wrote record with delete flag
} }
else if (state==CSMWorld::RecordBase::State_Modified || else if (infoState==CSMWorld::RecordBase::State_Modified ||
state==CSMWorld::RecordBase::State_ModifiedOnly) infoState==CSMWorld::RecordBase::State_ModifiedOnly)
{ {
ESM::DialInfo info = iter->get(); ESM::DialInfo info = iter->get();
info.mId = info.mId.substr (info.mId.find_last_of ('#')+1); info.mId = info.mId.substr (info.mId.find_last_of ('#')+1);