Skip to content

Commit

Permalink
Fix Active Creature Flag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Jan 31, 2023
1 parent 4061228 commit 8583415
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/game/Object/ObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,11 +1569,12 @@ void ObjectMgr::LoadCreatures()
if (gameEvent == 0 && GuidPoolId == 0 && EntryPoolId == 0) // if not this is to be managed by GameEvent System or Pool system
{
AddCreatureToGrid(guid, &data);
}

if (cInfo->ExtraFlags & CREATURE_FLAG_EXTRA_ACTIVE)
{
m_activeCreatures.insert(ActiveCreatureGuidsOnMap::value_type(data.mapid, guid));
if (cInfo->ExtraFlags & CREATURE_FLAG_EXTRA_ACTIVE)
{
sLog.outString("Adding `creature` with Active Flag: Map: %u, Guid %u", data.mapid, guid);
m_activeCreatures.insert(ActiveCreatureGuidsOnMap::value_type(data.mapid, guid));
}
}

++count;
Expand Down

0 comments on commit 8583415

Please sign in to comment.