1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Merge pull request #1605

This commit is contained in:
scrawl 2018-02-10 23:15:26 +00:00
commit 5bb7d76913
No known key found for this signature in database
GPG Key ID: 2E6CC3676024C402

View File

@ -566,9 +566,16 @@ namespace MWMechanics
{
std::string itFaction = playerFactionIt->first;
// Ignore the faction, if a player was expelled from it.
if (playerStats.getExpelled(itFaction))
continue;
int itReaction = MWBase::Environment::get().getDialogueManager()->getFactionReaction(npcFaction, itFaction);
if (playerFactionIt == playerStats.getFactionRanks().begin() || itReaction < reaction)
{
reaction = static_cast<float>(itReaction);
rank = playerFactionIt->second;
}
}
}
else