mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 02:45:32 +00:00
bugfix
This commit is contained in:
parent
2841d831a6
commit
bf98b95955
1 changed files with 2 additions and 1 deletions
|
@ -353,7 +353,8 @@ namespace MWMechanics
|
||||||
|
|
||||||
float reaction = 0;
|
float reaction = 0;
|
||||||
int rank = 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();
|
const ESMS::ESMStore &store = MWBase::Environment::get().getWorld()->getStore();
|
||||||
|
|
||||||
if (playerSkill.getFactionRanks().find(toLower(npcFaction)) != playerSkill.getFactionRanks().end())
|
if (playerSkill.getFactionRanks().find(toLower(npcFaction)) != playerSkill.getFactionRanks().end())
|
||||||
|
|
Loading…
Reference in a new issue