*Cleanups before delete after not successfull load pet from db. Thanks to Drahy for debug traces.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-01-18 23:12:35 +01:00
parent c7c3b0edb0
commit a1bbbd1421
4 changed files with 14 additions and 0 deletions

View File

@@ -4855,7 +4855,10 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
}
else
{
NewPet->CleanupsBeforeDelete();
delete NewPet;
}
}
}
return;