Entities/Creature: Fix spawn health, fdd78d2 follow-up. Fixes and closes #17757.

This commit is contained in:
treeston
2016-08-08 23:54:47 +02:00
parent 5588881be2
commit 5b6eb29b74

View File

@@ -1360,6 +1360,7 @@ bool Creature::LoadCreatureFromDB(ObjectGuid::LowType spawnId, Map* map, bool ad
}
m_spawnId = spawnId;
m_creatureData = data;
if (!Create(map->GenerateLowGuid<HighGuid::Unit>(), map, data->phaseMask, data->id, data->posX, data->posY, data->posZ, data->orientation, data))
return false;
@@ -1388,8 +1389,6 @@ bool Creature::LoadCreatureFromDB(ObjectGuid::LowType spawnId, Map* map, bool ad
// checked at creature_template loading
m_defaultMovementType = MovementGeneratorType(data->movementType);
m_creatureData = data;
if (addToMap && !GetMap()->AddToMap(this))
return false;
return true;