[7820] Fixed typo in [7819] that not allow correct work non-scalling item stats.

This commit is contained in:
VladimirMangos 2009-05-14 10:39:14 +04:00
parent 167e8c86f6
commit 4edbdb02f6
2 changed files with 2 additions and 2 deletions

View file

@ -6355,7 +6355,7 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
}
else
{
if (proto->StatsCount >= i)
if (i >= proto->StatsCount)
continue;
statType = proto->ItemStat[i].ItemStatType;
val = proto->ItemStat[i].ItemStatValue;