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

(cherrypicked from b3b4054eb4)
This commit is contained in:
treeston
2017-02-22 02:31:10 +01:00
committed by Shauren
parent b91eac6a1c
commit 8e4f5e1627

View File

@@ -1651,12 +1651,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)