mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Use ESM::RefId as key for MergeReferencesStage::mIndex
This commit is contained in:
parent
eb17f0ba06
commit
4cb095ce39
@ -15,7 +15,6 @@
|
||||
|
||||
#include <components/esm3/cellref.hpp>
|
||||
#include <components/esm3/esmreader.hpp>
|
||||
#include <components/misc/strings/lower.hpp>
|
||||
|
||||
#include "mergestate.hpp"
|
||||
|
||||
@ -117,7 +116,7 @@ void CSMTools::MergeReferencesStage::perform(int stage, CSMDoc::Messages& messag
|
||||
|
||||
ref.mOriginalCell = ref.mCell;
|
||||
|
||||
ref.mRefNum.mIndex = mIndex[Misc::StringUtils::lowerCase(ref.mCell.getRefIdString())]++;
|
||||
ref.mRefNum.mIndex = mIndex[ref.mCell]++;
|
||||
ref.mRefNum.mContentFile = 0;
|
||||
ref.mNew = false;
|
||||
|
||||
|
@ -113,7 +113,7 @@ namespace CSMTools
|
||||
class MergeReferencesStage : public CSMDoc::Stage
|
||||
{
|
||||
MergeState& mState;
|
||||
std::map<std::string, int> mIndex;
|
||||
std::map<ESM::RefId, int> mIndex;
|
||||
|
||||
public:
|
||||
MergeReferencesStage(MergeState& state);
|
||||
|
Loading…
x
Reference in New Issue
Block a user