Core/Creature: Fix SetSpawnHealth so it cooperates with the colossal hack that is Battleground::AddCreature. *puke*

This commit is contained in:
treeston
2017-02-22 02:31:10 +01:00
parent f4ae639961
commit b3b4054eb4

View File

@@ -1552,12 +1552,8 @@ void Creature::LoadEquipment(int8 id, bool force /*= true*/)
void Creature::SetSpawnHealth()
{
if (!m_creatureData)
return;
uint32 curhealth;
if (!m_regenHealth)
if (m_creatureData && !m_regenHealth)
{
curhealth = m_creatureData->curhealth;
if (curhealth)