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:
1 parent
9ba174d387
commit
2c6fe430f5
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user