Merge branch 'master' of github.com:azerothcore/azerothcore-wotlk into Playerbot
This commit is contained in:
@@ -7676,8 +7676,8 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
|
||||
|
||||
_repSpilloverTemplateStore.clear(); // for reload case
|
||||
|
||||
uint32 count = 0; // 0 1 2 3 4 5 6 7 8 9 10 11 12
|
||||
QueryResult result = WorldDatabase.Query("SELECT faction, faction1, rate_1, rank_1, faction2, rate_2, rank_2, faction3, rate_3, rank_3, faction4, rate_4, rank_4 FROM reputation_spillover_template");
|
||||
uint32 count = 0; // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
||||
QueryResult result = WorldDatabase.Query("SELECT faction, faction1, rate_1, rank_1, faction2, rate_2, rank_2, faction3, rate_3, rank_3, faction4, rate_4, rank_4, faction5, rate_5, rank_5, faction6, rate_6, rank_6 FROM reputation_spillover_template");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
@@ -7706,6 +7706,12 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
|
||||
repTemplate.faction[3] = fields[10].Get<uint16>();
|
||||
repTemplate.faction_rate[3] = fields[11].Get<float>();
|
||||
repTemplate.faction_rank[3] = fields[12].Get<uint8>();
|
||||
repTemplate.faction[4] = fields[13].Get<uint16>();
|
||||
repTemplate.faction_rate[4] = fields[14].Get<float>();
|
||||
repTemplate.faction_rank[4] = fields[15].Get<uint8>();
|
||||
repTemplate.faction[5] = fields[16].Get<uint16>();
|
||||
repTemplate.faction_rate[5] = fields[17].Get<float>();
|
||||
repTemplate.faction_rank[5] = fields[18].Get<uint8>();
|
||||
|
||||
FactionEntry const* factionEntry = sFactionStore.LookupEntry(factionId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user