Fix for incorrect reputation rewards for certain factions with rep spillover
--HG-- branch : trunk
This commit is contained in:
@@ -609,20 +609,10 @@ void LoadDBCStores(const std::string& dataPath)
|
|||||||
|
|
||||||
SimpleFactionsList const* GetFactionTeamList(uint32 faction)
|
SimpleFactionsList const* GetFactionTeamList(uint32 faction)
|
||||||
{
|
{
|
||||||
for (FactionTeamMap::const_iterator itr = sFactionTeamMap.begin(); itr != sFactionTeamMap.end(); ++itr)
|
FactionTeamMap::const_iterator itr = sFactionTeamMap.find(faction);
|
||||||
{
|
if (itr != sFactionTeamMap.end())
|
||||||
if (itr->first == faction)
|
return &itr->second;
|
||||||
{
|
|
||||||
return &itr->second;
|
|
||||||
}
|
|
||||||
for (SimpleFactionsList::const_iterator itr2 = itr->second.begin(); itr2 != itr->second.end(); ++itr2)
|
|
||||||
{
|
|
||||||
if ((*itr2) == faction)
|
|
||||||
{
|
|
||||||
return &itr->second;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user