Fix a crash in BuildPlayerTalentsInfoData.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-25 00:33:45 +02:00
parent 0f7657b68c
commit 275469a930
@@ -23119,6 +23119,9 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket *data)
if (m_specsCount)
{
if (m_specsCount > MAX_TALENT_SPECS)
m_specsCount = MAX_TALENT_SPECS;
// loop through all specs (only 1 for now)
for (uint32 specIdx = 0; specIdx < m_specsCount; ++specIdx)
{