1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +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())