mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[7936] Fixed low chance but possible crash at creature tame.
Thanks to marry521 for patch preparing to mangos. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c3c7187841
commit
e1927fa4f8
2 changed files with 3 additions and 1 deletions
|
|
@ -4039,6 +4039,8 @@ void Spell::EffectTameCreature(uint32 /*i*/)
|
||||||
finish();
|
finish();
|
||||||
|
|
||||||
Pet* pet = m_caster->CreateTamedPetFrom(creatureTarget,m_spellInfo->Id);
|
Pet* pet = m_caster->CreateTamedPetFrom(creatureTarget,m_spellInfo->Id);
|
||||||
|
if(!pet) // in versy specific state like near world end/etc.
|
||||||
|
return;
|
||||||
|
|
||||||
// kill original creature
|
// kill original creature
|
||||||
creatureTarget->setDeathState(JUST_DIED);
|
creatureTarget->setDeathState(JUST_DIED);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7935"
|
#define REVISION_NR "7936"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue