forked from mirror/openmw-tes3mp
Works, but it seems that I miss something in referencables. I will write post on the forum.
This commit is contained in:
parent
a27441720e
commit
1811f0a71b
3 changed files with 7 additions and 8 deletions
|
@ -30,16 +30,15 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
|
|||
{
|
||||
//Checks for books, than, when stage is above mBooksSize goes to other checks, with (stage - PrevSum) as stage.
|
||||
|
||||
if (stage <= mBooksSize)
|
||||
if (stage < mBooksSize)
|
||||
{
|
||||
bookCheck(stage, mReferencables.getBooks(), messages);
|
||||
std::cout<<"Book checking \n";
|
||||
return;
|
||||
}
|
||||
|
||||
stage -= mBooksSize;
|
||||
|
||||
if (stage <= mActivatorsSize)
|
||||
if (stage < mActivatorsSize)
|
||||
{
|
||||
activatorCheck(stage, mReferencables.getActivators(), messages);
|
||||
return;
|
||||
|
@ -47,7 +46,7 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
|
|||
|
||||
stage -= mActivatorsSize;
|
||||
|
||||
if (stage <= mPotionsSize)
|
||||
if (stage < mPotionsSize)
|
||||
{
|
||||
potionCheck(stage, mReferencables.getPotions(), messages);
|
||||
return;
|
||||
|
@ -55,7 +54,7 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
|
|||
|
||||
stage -= mPotionsSize;
|
||||
|
||||
if (stage <= mApparatiSize)
|
||||
if (stage < mApparatiSize)
|
||||
{
|
||||
apparatusCheck(stage, mReferencables.getApparati(), messages);
|
||||
return;
|
||||
|
@ -223,4 +222,4 @@ void CSMTools::ReferenceableCheckStage::apparatusCheck(int stage, const CSMWorld
|
|||
{
|
||||
messages.push_back(id.toString() + "|" + Apparatus.mId + " has no icon");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,4 +68,4 @@ void CSMTools::ReportModel::add (const std::string& row)
|
|||
const CSMWorld::UniversalId& CSMTools::ReportModel::getUniversalId (int row) const
|
||||
{
|
||||
return mRows.at (row).first;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ CSMDoc::Operation *CSMTools::Tools::getVerifier()
|
|||
|
||||
mVerifier->appendStage (new SpellCheckStage (mData.getSpells()));
|
||||
|
||||
mVerifier->appendStage( new ReferenceableCheckStage (mData.getReferenceables().getDataSet()));
|
||||
mVerifier->appendStage (new ReferenceableCheckStage (mData.getReferenceables().getDataSet()));
|
||||
}
|
||||
|
||||
return mVerifier;
|
||||
|
|
Loading…
Reference in a new issue