mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
small oops + added new variables to the constructor
This commit is contained in:
parent
b9d1047ad6
commit
147ee0ace3
@ -9,8 +9,10 @@
|
||||
|
||||
#include "../world/universalid.hpp"
|
||||
|
||||
CSMTools::ReferenceableCheckStage::ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable) :
|
||||
CSMTools::ReferenceableCheckStage::ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable, const CSMWorld::IdCollection<ESM::ace >& races, const CSMWorld::IdCollection<ESM::Class>& classes) :
|
||||
mReferencables(referenceable),
|
||||
mClasses(classes),
|
||||
mRaces(races),
|
||||
mBooksSize(mReferencables.getBooks().getSize()),
|
||||
mActivatorsSize(mReferencables.getActivators().getSize()),
|
||||
mPotionsSize(mReferencables.getPotions().getSize()),
|
||||
@ -913,7 +915,7 @@ void CSMTools::ReferenceableCheckStage::npcCheck(int stage, const CSMWorld::RefI
|
||||
|
||||
if (Gold < 0)
|
||||
{
|
||||
messages.push_back(id.toString() + "|" + NPC.mId + " gold is negative value");
|
||||
messages.push_back(id.toString() + "|" + NPC.mId + " gold has negative value");
|
||||
}
|
||||
|
||||
if (NPC.mName.empty())
|
||||
|
@ -11,7 +11,7 @@ namespace CSMTools
|
||||
class ReferenceableCheckStage : public CSMDoc::Stage
|
||||
{
|
||||
public:
|
||||
ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable);
|
||||
ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable, const CSMWorld::IdCollection<ESM::Race>& races, const CSMWorld::IdCollection<ESM::Class>& classes);
|
||||
virtual void perform(int stage, std::vector< std::string >& messages);
|
||||
virtual int setup();
|
||||
|
||||
@ -34,7 +34,9 @@ namespace CSMTools
|
||||
void miscCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::Miscellaneous>& records, std::vector<std::string>& messages);
|
||||
void npcCheck(int stage, const CSMWorld::RefIdDataContainer<ESM::NPC>& records, std::vector<std::string>& messages);
|
||||
|
||||
const CSMWorld::RefIdData mReferencables;
|
||||
const CSMWorld::RefIdData& mReferencables;
|
||||
const CSMWorld::IdCollection<ESM::Race> mRaces;
|
||||
const CSMWorld::IdCollection<ESM::Class> mClasses;
|
||||
|
||||
//SIZES OF CONCRETE TYPES
|
||||
const int mBooksSize;
|
||||
|
@ -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()), mData.getRaces(), mData.getClasses());
|
||||
}
|
||||
|
||||
return mVerifier;
|
||||
|
Loading…
x
Reference in New Issue
Block a user