more missing part

This commit is contained in:
Aokromes committed 2017-01-24 12:35:47 +01:00
1 parent b84c81faa4
commit 4c4c03a074
3 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -4189,7 +4189,7 @@ void Spell::EffectSummonDynObj(SpellEffIndex effIndex)
float radius = m_spellInfo->Effects[effIndex].CalcRadius(m_caster);
DynamicObject* dynObj = new DynamicObject(false);
if (!dynObj->CreateDynamicObject(sObjectMgr->GenerateLowGuid(HIGHGUID_DYNAMICOBJECT), m_caster, m_spellInfo, *destTarget, radius, DYNAMIC_OBJECT_RAID_MARKER))
if (!dynObj->CreateDynamicObject(m_caster->GetMap()->GenerateLowGuid<HighGuid::DynamicObject>(), m_caster, m_spellInfo, *destTarget, radius, DYNAMIC_OBJECT_RAID_MARKER))
{
delete dynObj;
return;
@@ -4216,7 +4216,7 @@ void Spell::EffectSummonRaidMarker(SpellEffIndex effIndex)
float radius = m_spellInfo->Effects[effIndex].CalcRadius(m_caster);
DynamicObject* dynObj = new DynamicObject(false);
if (!dynObj->CreateDynamicObject(sObjectMgr->GenerateLowGuid(HIGHGUID_DYNAMICOBJECT), m_caster, m_spellInfo, *destTarget, radius, DYNAMIC_OBJECT_RAID_MARKER))
if (!dynObj->CreateDynamicObject(m_caster->GetMap()->GenerateLowGuid<HighGuid::DynamicObject>(), m_caster, m_spellInfo, *destTarget, radius, DYNAMIC_OBJECT_RAID_MARKER))
{
delete dynObj;
return;