From c6407a8b4c795a3a757daa170489588ce59c7a5e Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 14 May 2009 11:58:01 -0500 Subject: [7820] Fixed typo in [7819] that not allow correct work non-scalling item stats. Author: VladimirMangos --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ba86b6b5bec..3b40880bef8 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6500,7 +6500,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; -- cgit v1.2.3