diff options
author | Machiavelli <none@none> | 2009-06-18 18:29:28 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-18 18:29:28 +0200 |
commit | a4dafbf8ec26fa33ce51140bb77b0b1a68df93ff (patch) | |
tree | 5850e3965f0eabb6a17433fa5737d807bad84406 /src/game/Unit.h | |
parent | 1f871af996eb837d7a191fb947bcf565f4592c1c (diff) |
* More updating of iterator data types in loops
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r-- | src/game/Unit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h index ffc4c91f7a8..03a02f0c512 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1436,8 +1436,8 @@ class TRINITY_DLL_SPEC Unit : public WorldObject void ApplyResistanceBuffModsPercentMod(SpellSchools school, bool positive, float val, bool apply) { ApplyPercentModFloatValue(positive ? UNIT_FIELD_RESISTANCEBUFFMODSPOSITIVE+school : UNIT_FIELD_RESISTANCEBUFFMODSNEGATIVE+school, val, apply); } void InitStatBuffMods() { - for(int i = STAT_STRENGTH; i < MAX_STATS; ++i) SetFloatValue(UNIT_FIELD_POSSTAT0+i, 0); - for(int i = STAT_STRENGTH; i < MAX_STATS; ++i) SetFloatValue(UNIT_FIELD_NEGSTAT0+i, 0); + for(uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i) SetFloatValue(UNIT_FIELD_POSSTAT0+i, 0); + for(uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i) SetFloatValue(UNIT_FIELD_NEGSTAT0+i, 0); } void ApplyStatBuffMod(Stats stat, float val, bool apply) { ApplyModSignedFloatValue((val > 0 ? UNIT_FIELD_POSSTAT0+stat : UNIT_FIELD_NEGSTAT0+stat), val, apply); } void ApplyStatPercentBuffMod(Stats stat, float val, bool apply) |