Corrected stupid typo.

This commit is contained in:
Marek Kochanowicz 2013-12-30 19:24:53 +01:00
parent 79bc149c73
commit cb723710fe

View file

@ -945,7 +945,7 @@ void CSMTools::ReferenceableCheckStage::npcCheck(int stage, const CSMWorld::RefI
} }
else //checking if there is such class else //checking if there is such class
{ {
if (mClasses.searchId(NPC.mClass)) if (mClasses.searchId(NPC.mClass) == -1)
{ {
messages.push_back(id.toString() + "|" + NPC.mId + " has invalid class"); messages.push_back(id.toString() + "|" + NPC.mId + " has invalid class");
} }