mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
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:
parent
f2f3445a7c
commit
923d3f5788
3 changed files with 30 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue