Fix case folding for faction reaction from ESX records

deque
scrawl 11 years ago
parent 2b15b85af1
commit 0b45a9e6b2

@ -695,12 +695,14 @@ namespace MWDialogue
const ESM::Faction* faction = MWBase::Environment::get().getWorld()->getStore().get<ESM::Faction>().find(fact1);
std::map<std::string, int>::const_iterator it = faction->mReactions.find(fact2);
if (it == faction->mReactions.end())
return diff;
else
std::map<std::string, int>::const_iterator it = faction->mReactions.begin();
for (; it != faction->mReactions.end(); ++it)
{
if (Misc::StringUtils::ciEqual(it->first, fact2))
return it->second + diff;
}
return diff;
}
std::vector<HyperTextToken> ParseHyperText(const std::string& text)
{

Loading…
Cancel
Save