fix: Channel Crash (#15909)
This commit is contained in:
parent
88dcf4c300
commit
c84123b607
1 changed files with 3 additions and 4 deletions
|
|
@ -489,12 +489,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue