[11339] Set correct summon coordinates for creature pet, created in Spell::EffectSummonPet(). Should fix rare crashes in RandomMovementGenerator<Creature>::_setRandomLocation.

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Ambal 2011-04-12 23:40:11 +03:00
parent 764345609e
commit c60bee7173
2 changed files with 3 additions and 1 deletions

View file

@ -5473,6 +5473,8 @@ void Spell::EffectSummonPet(SpellEffectIndex eff_idx)
return;
}
NewSummon->SetSummonPoint(pos);
uint32 petlevel = m_caster->getLevel();
NewSummon->setPetType(SUMMON_PET);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11338"
#define REVISION_NR "11339"
#endif // __REVISION_NR_H__