Core/Group: GetObjectInWorld isn't exist. Use GetDynamicObject

The GetObjectInWorld function used the global HashMapHolder, but here they is only for Player and Transporter.
This commit is contained in:
sevi
2017-01-25 23:53:52 +01:00
parent 9ba174d387
commit 2c6fe430f5

View File

@@ -1626,7 +1626,7 @@ 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);
DynamicObject* dynObj = ObjectAccessor::GetDynamicObject((DynamicObject*)NULL, *i);
if (!dynObj)
continue;