Some fixes

This commit is contained in:
Aokromes committed 2017-01-26 17:39:24 +01:00
1 parent 9ba174d387
commit 4a3d10502b
3 files changed
+7 -10

No files matched your search

+3 -6
View File
@@ -1626,11 +1626,8 @@ DynamicObject* Group::GetMarkerGuidBySpell(uint32 spell)
{
for (DynObjectList::const_iterator i = m_dynObj.begin(); i != m_dynObj.end(); ++i)
{
DynamicObject* dynObj = ObjectAccessor::GetObjectInWorld(*i, (DynamicObject*)NULL);
if (!dynObj)
continue;
if (dynObj->GetEntry() == spell)
DynamicObject* dynObj = *i;
if (dynObj && dynObj->GetEntry() == spell)
return dynObj;
}
}
@@ -1652,7 +1649,7 @@ void Group::RemoveMarker()
if (!dynObject)
continue;
RemoveMarkerFromList(dynObject->GetGUID());
RemoveMarkerFromList(dynObject);
dynObject->RemoveFromWorld();
}
}