From 039a5a8711b0adb57f97de0c6d50744bf8d2b824 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 } } -- 2.11.4.GIT