mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -1801,7 +1801,7 @@ public:
|
||||
{
|
||||
Unit::SetPvP(state);
|
||||
if (!m_Controlled.empty())
|
||||
for (auto itr : m_Controlled)
|
||||
for (auto& itr : m_Controlled)
|
||||
itr->SetPvP(state);
|
||||
}
|
||||
void UpdatePvP(bool state, bool _override = false);
|
||||
|
||||
@@ -48,7 +48,7 @@ void Player::_LoadCharacterSettings(PreparedQueryResult result)
|
||||
|
||||
uint32 count = 0;
|
||||
|
||||
for (auto token : tokens)
|
||||
for (auto& token : tokens)
|
||||
{
|
||||
if (token.empty())
|
||||
{
|
||||
@@ -95,11 +95,11 @@ void Player::_SavePlayerSettings(CharacterDatabaseTransaction trans)
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto itr : m_charSettingsMap)
|
||||
for (auto& itr : m_charSettingsMap)
|
||||
{
|
||||
std::ostringstream data;
|
||||
|
||||
for (auto setting : itr.second)
|
||||
for (auto& setting : itr.second)
|
||||
{
|
||||
data << setting.value << ' ';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user