From 781d9ca211745f457cb94cde300f6b81cef4f943 Mon Sep 17 00:00:00 2001 From: tomrus88 Date: Wed, 8 Apr 2009 14:53:42 +0400 Subject: [PATCH] Replaced hardcoded value with define --- src/game/Player.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 4332c0160..c15c8f860 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -19805,10 +19805,9 @@ void Player::BuildPlayerTalentsInfoData(WorldPacket *data) data->put(pos, talentIdCount); // put real count - uint8 glyphsCount = 6; - *data << uint8(glyphsCount); // glyphs count + *data << uint8(MAX_GLYPH_SLOT_INDEX); // glyphs count - for(uint8 i = 0; i < glyphsCount; ++i) + for(uint8 i = 0; i < MAX_GLYPH_SLOT_INDEX; ++i) *data << uint16(GetGlyph(i)); // GlyphProperties.dbc } }