Core/Creature: Fix creature respawn time in unloaded/inactive grid cells.

Fixes issue 1865.

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-09-15 06:22:54 +02:00
parent cce61839f8
commit 356a263059
3 changed files with 31 additions and 34 deletions
+1 -1
View File
@@ -499,7 +499,7 @@ void Pet::Update(uint32 diff)
{
case CORPSE:
{
if (getPetType() != HUNTER_PET || m_deathTimer <= diff)
if (getPetType() != HUNTER_PET || m_corpseRemoveTime <= time(NULL))
{
Remove(PET_SAVE_NOT_IN_SLOT); //hunters' pets never get removed because of death, NEVER!
return;