1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Creature check was not invoked.

This commit is contained in:
Marek Kochanowicz 2014-01-13 19:02:23 +01:00
parent 17cc6a695c
commit 59de794e58

View file

@ -207,6 +207,15 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
return;
}
stage -= staticSize;
const int creatureSize(mReferencables.getCreatures().getSize());
if (stage < creatureSize)
{
creatureCheck(stage, mReferencables.getCreatures(), messages);
return;
}
// if we come that far, we are about to perform our last, final check.
finalCheck(messages);
return;
@ -215,7 +224,7 @@ void CSMTools::ReferenceableCheckStage::perform(int stage, std::vector< std::str
int CSMTools::ReferenceableCheckStage::setup()
{
mPlayerPresent = false;
return mReferencables.getSize() + 2; //DANGER, final check is not performed if it is just +1
return mReferencables.getSize() + 1;
}
void CSMTools::ReferenceableCheckStage::bookCheck(