1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 23:45:32 +00:00
This commit is contained in:
gugus 2012-11-06 13:10:54 +01:00
parent 2841d831a6
commit bf98b95955

View file

@ -353,7 +353,8 @@ namespace MWMechanics
float reaction = 0;
int rank = 0;
std::string npcFaction = npcSkill.getFactionRanks().begin()->first;
std::string npcFaction = "";
if(!npcSkill.getFactionRanks().empty()) npcFaction = npcSkill.getFactionRanks().begin()->first;
const ESMS::ESMStore &store = MWBase::Environment::get().getWorld()->getStore();
if (playerSkill.getFactionRanks().find(toLower(npcFaction)) != playerSkill.getFactionRanks().end())