mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:56:43 +00:00 
			
		
		
		
	Fix case folding for faction reaction from ESX records
This commit is contained in:
		
							parent
							
								
									2b15b85af1
								
							
						
					
					
						commit
						0b45a9e6b2
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -695,11 +695,13 @@ 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
 | 
			
		||||
            return it->second + diff;
 | 
			
		||||
        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…
	
		Reference in a new issue