1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 22:45:33 +00:00

corrected one, additional name to follow policy

This commit is contained in:
Marek Kochanowicz 2014-01-05 18:00:49 +01:00
parent 4338706307
commit c69814ed14

View file

@ -756,18 +756,18 @@ void CSMTools::ReferenceableCheckStage::npcCheck(
}
else //checking if there is a such race
{
bool nosuchrace(true);
bool noSuchRace(true);
for (int i = 0; i < mRaces.getSize(); ++i)
{
if (dynamic_cast<const ESM::Race&>(mRaces.getRecord(i).get()).mName == npc.mRace) //mId in class, mName for race. Stupid.
{
nosuchrace = false;
noSuchRace = false;
break;
}
}
if (nosuchrace)
if (noSuchRace)
{
messages.push_back(id.toString() + "|" + npc.mId + " has invalid race");
}