From 4edbdb02f60e8c96ec49e959fbe6b98be91169d5 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 14 May 2009 10:39:14 +0400 Subject: [PATCH] [7820] Fixed typo in [7819] that not allow correct work non-scalling item stats. --- src/game/Player.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 1b5620286..7856a287d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 1a12c009b..835d52759 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7819" + #define REVISION_NR "7820" #endif // __REVISION_NR_H__