diff options
author | megamage <none@none> | 2009-04-07 19:41:25 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-07 19:41:25 -0500 |
commit | e2333f2adf904736f241d3df68e6c1e3f37c0db4 (patch) | |
tree | f898d8bf39b2ec5edbfc8fa8439cb0ba0d0e8ef8 /src | |
parent | 7888cfb417f6f2ef01451257627a17ab710abf03 (diff) |
[7626] Fixed: Typo in InitStatsForLevel Author: rastikzzz
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Map.cpp | 2 | ||||
-rw-r--r-- | src/game/Player.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 0e12abd0957..7fa60ed8ebc 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1765,8 +1765,6 @@ float Map::GetVmapHeight(float x, float y, float z, bool useMaps) const return vmapHeight; } -#include "World.h" - uint16 Map::GetAreaFlag(float x, float y, float z) const { uint16 areaflag; diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ded28b9c9ec..bee796615c7 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -2474,7 +2474,7 @@ void Player::InitStatsForLevel(bool reapplyMods) SetUInt32Value(PLAYER_FIELD_MOD_TARGET_PHYSICAL_RESISTANCE,0); for(int i = 0; i < MAX_SPELL_SCHOOL; ++i) { - SetFloatValue(UNIT_FIELD_POWER_COST_MODIFIER+i,0.0f); + SetUInt32Value(UNIT_FIELD_POWER_COST_MODIFIER+i,0); SetFloatValue(UNIT_FIELD_POWER_COST_MULTIPLIER+i,0.0f); } // Reset no reagent cost field |