Some build errors and warning fixed

Fixed:
22 errors
19 warnings

82 errors and 7 warnings remaining, at this point.
This commit is contained in:
Charles A Edwards 2016-01-30 10:10:37 +00:00 committed by Antz
parent f2f3445a7c
commit 923d3f5788
3 changed files with 30 additions and 5 deletions

View file

@ -10087,7 +10087,7 @@ Powers Unit::GetPowerTypeByIndex(uint32 index, uint32 classId)
return Powers(sChrClassXPowerIndexStore[classId][index]);
}
int32 Unit::GetPower(Powers power) const
uint32 Unit::GetPower(Powers power) const
{
if (power == POWER_HEALTH)
return GetHealth();
@ -10099,7 +10099,7 @@ int32 Unit::GetPower(Powers power) const
return GetUInt32Value(UNIT_FIELD_POWER1 + powerIndex);
}
int32 Unit::GetPowerByIndex(uint32 index) const
uint32 Unit::GetPowerByIndex(uint32 index) const
{
MANGOS_ASSERT(index < MAX_STORED_POWERS);