mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 15:16:24 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -491,12 +491,11 @@ void Player::UpdateLocalChannels(uint32 newZone)
|
||||
{
|
||||
Channel* usedChannel = nullptr;
|
||||
|
||||
for (JoinedChannelsList::iterator itr = m_channels.begin();
|
||||
itr != m_channels.end(); ++itr)
|
||||
for (Channel* channel : m_channels)
|
||||
{
|
||||
if ((*itr)->GetChannelId() == i)
|
||||
if (channel && channel->GetChannelId() == i)
|
||||
{
|
||||
usedChannel = *itr;
|
||||
usedChannel = channel;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user