From b3b4054eb44fdb9b0efe47d1a7ec3021b87a5fed Mon Sep 17 00:00:00 2001 From: treeston Date: Wed, 22 Feb 2017 02:31:10 +0100 Subject: Core/Creature: Fix SetSpawnHealth so it cooperates with the colossal hack that is Battleground::AddCreature. *puke* --- src/server/game/Entities/Creature/Creature.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index ca428592119..4d80ca7b855 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -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) -- cgit v1.2.3