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

fixed an indexing error

(cherry picked from commit 23fde87816)
This commit is contained in:
Marc Zinnschlag 2015-09-11 10:50:19 +02:00 committed by cc9cii
parent 4aa6d7d1d1
commit 453c3ee760

View file

@ -171,10 +171,10 @@ void CSMTools::MergeLandTexturesStage::perform (int stage, CSMDoc::Messages& mes
if (mNext==mState.mTextureIndices.end())
return;
mNext->second = stage;
mNext->second = stage+1;
std::ostringstream stream;
stream << mNext->first.first << "_" << mNext->first.second;
stream << mNext->first.first-1 << "_" << mNext->first.second;
int index = mState.mSource.getData().getLandTextures().searchId (stream.str());
@ -184,9 +184,9 @@ void CSMTools::MergeLandTexturesStage::perform (int stage, CSMDoc::Messages& mes
mState.mSource.getData().getLandTextures().getRecord (index).get();
std::ostringstream stream;
stream << mNext->second << "_0";
stream << mNext->second-1 << "_0";
texture.mIndex = mNext->second;
texture.mIndex = mNext->second-1;
texture.mId = stream.str();
CSMWorld::Record<CSMWorld::LandTexture> newRecord (