mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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:
parent
764345609e
commit
c60bee7173
2 changed files with 3 additions and 1 deletions
|
|
@ -5473,6 +5473,8 @@ void Spell::EffectSummonPet(SpellEffectIndex eff_idx)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NewSummon->SetSummonPoint(pos);
|
||||||
|
|
||||||
uint32 petlevel = m_caster->getLevel();
|
uint32 petlevel = m_caster->getLevel();
|
||||||
NewSummon->setPetType(SUMMON_PET);
|
NewSummon->setPetType(SUMMON_PET);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11338"
|
#define REVISION_NR "11339"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue