aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Map.cpp2
-rw-r--r--src/game/Player.cpp2
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