mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-20 22:09:40 +00:00
Getting size of potions.
This commit is contained in:
parent
a6c36e2377
commit
21ee2a6d2e
2 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,8 @@
|
||||||
CSMTools::ReferenceableCheckStage::ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable) :
|
CSMTools::ReferenceableCheckStage::ReferenceableCheckStage(const CSMWorld::RefIdData& referenceable) :
|
||||||
mReferencables(referenceable),
|
mReferencables(referenceable),
|
||||||
mBooksSize(0),
|
mBooksSize(0),
|
||||||
mActivatorsSize(0)
|
mActivatorsSize(0),
|
||||||
|
mPotionsSize(0)
|
||||||
{
|
{
|
||||||
setSizeVariables();
|
setSizeVariables();
|
||||||
}
|
}
|
||||||
|
@ -116,5 +117,6 @@ void CSMTools::ReferenceableCheckStage::activatorCheck(int stage, const CSMWorld
|
||||||
void CSMTools::ReferenceableCheckStage::setSizeVariables()
|
void CSMTools::ReferenceableCheckStage::setSizeVariables()
|
||||||
{
|
{
|
||||||
mBooksSize = mReferencables.getBooks().getSize();
|
mBooksSize = mReferencables.getBooks().getSize();
|
||||||
mActivatorsSize = mReferencables.getActivator().getSize();
|
mActivatorsSize = mReferencables.getActivators().getSize();
|
||||||
|
mPotionsSize = mReferencables.getPotions().getSize();
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ namespace CSMTools
|
||||||
const CSMWorld::RefIdData mReferencables;
|
const CSMWorld::RefIdData mReferencables;
|
||||||
int mBooksSize;
|
int mBooksSize;
|
||||||
int mActivatorsSize;
|
int mActivatorsSize;
|
||||||
|
int mPotionsSize;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif // REFERENCEABLECHECKSTAGE_H
|
#endif // REFERENCEABLECHECKSTAGE_H
|
||||||
|
|
Loading…
Reference in a new issue