*Fix a crash by unit with 0 maxhealth.
--HG-- branch : trunk
This commit is contained in:
1 parent
05d4b02eee
commit
bd5a53a774
1 file changed
+2
@@ -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