mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
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:
@@ -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