*Fix a crash by unit with 0 maxhealth.
--HG-- branch : trunk
This commit is contained in:
@@ -11912,6 +11912,8 @@ void Unit::SetHealth(uint32 val)
|
||||
|
||||
void Unit::SetMaxHealth(uint32 val)
|
||||
{
|
||||
if(!val) val = 1;
|
||||
|
||||
uint32 health = GetHealth();
|
||||
SetUInt32Value(UNIT_FIELD_MAXHEALTH, val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user