From e2333f2adf904736f241d3df68e6c1e3f37c0db4 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 7 Apr 2009 19:41:25 -0500 Subject: [7626] Fixed: Typo in InitStatsForLevel Author: rastikzzz --HG-- branch : trunk --- src/game/Map.cpp | 2 -- src/game/Player.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3