mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
corrected one, additional name to follow policy
This commit is contained in:
parent
4338706307
commit
c69814ed14
@ -756,18 +756,18 @@ void CSMTools::ReferenceableCheckStage::npcCheck(
|
|||||||
}
|
}
|
||||||
else //checking if there is a such race
|
else //checking if there is a such race
|
||||||
{
|
{
|
||||||
bool nosuchrace(true);
|
bool noSuchRace(true);
|
||||||
|
|
||||||
for (int i = 0; i < mRaces.getSize(); ++i)
|
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.
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nosuchrace)
|
if (noSuchRace)
|
||||||
{
|
{
|
||||||
messages.push_back(id.toString() + "|" + npc.mId + " has invalid race");
|
messages.push_back(id.toString() + "|" + npc.mId + " has invalid race");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user