std::cerr<<"NPC '"<<npc.mId<<"' ("<<npc.mName<<") has nonexistent faction '"<<npc.mFaction<<"', ignoring it."<<std::endl;
npc.mFaction="";
npc.mNpdt.mRank=-1;
changed=true;
}
}
std::stringnpcClass=npc.mClass;
if(!npcClass.empty())
{
constESM::Class*cls=mClasses.search(npcClass);
if(!cls)
{
std::cerr<<"NPC '"<<npc.mId<<"' ("<<npc.mName<<") has nonexistent class '"<<npc.mClass<<"', using '"<<defaultCls<<"' class as replacement."<<std::endl;