mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 09:39:11 +00:00
chore(core): cleanup code p3 (#16073)
* Update MMapMgr.cpp * Update UpdateFetcher.cpp * Update AuctionHouseMgr.cpp * Update AuctionHouseMgr.h * Update BattlegroundAV.cpp * Update ChannelMgr.cpp * Update ThreatMgr.h * Update Player.h * Update PlayerSettings.cpp * Update ObjectMgr.cpp * Update Guild.cpp * Update Guild.h * Update Map.cpp * Update World.cpp * Update boss_nefarian.cpp * Update boss_prince_malchezaar.cpp * Update boss_venoxis.cpp * Update zone_elwynn_forest.cpp * Update zulfarrak.cpp * Update boss_novos.cpp
This commit is contained in:
@@ -1388,7 +1388,7 @@ void Guild::HandleSetRankInfo(WorldSession* session, uint8 rankId, std::string_v
|
||||
rankInfo->SetRights(rights);
|
||||
_SetRankBankMoneyPerDay(rankId, moneyPerDay);
|
||||
|
||||
for (auto rightsAndSlot : rightsAndSlots)
|
||||
for (auto& rightsAndSlot : rightsAndSlots)
|
||||
_SetRankBankTabRightsAndSlots(rankId, rightsAndSlot);
|
||||
|
||||
_BroadcastEvent(GE_RANK_UPDATED, ObjectGuid::Empty, std::to_string(rankId), rankInfo->GetName(), std::to_string(m_ranks.size()));
|
||||
@@ -2382,7 +2382,7 @@ void Guild::_CreateNewBankTab()
|
||||
trans->Append(stmt);
|
||||
|
||||
++tabId;
|
||||
for (auto & m_rank : m_ranks)
|
||||
for (auto& m_rank : m_ranks)
|
||||
m_rank.CreateMissingTabsIfNeeded(tabId, trans, false);
|
||||
|
||||
CharacterDatabase.CommitTransaction(trans);
|
||||
|
||||
Reference in New Issue
Block a user