Skip to content

Commit

Permalink
Fix another warning
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Aug 21, 2024
1 parent 0d38bbf commit d01056f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/Object/CreatureEventAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ CreatureEventAI::CreatureEventAI(Creature* c) : CreatureAI(c),
DEBUG_FILTER_LOG(LOG_FILTER_EVENT_AI_DEV, "CreatureEventAI: Event type %u (script %u) triggered for %s (invoked by %s)", \
pHolder.Event.event_type, pHolder.Event.event_id, m_creature->GetGuidStr().c_str(), pActionInvoker ? pActionInvoker->GetGuidStr().c_str() : "<no invoker>")

inline bool IsTimerBasedEvent(EventAI_Type type)
inline static bool IsTimerBasedEvent(EventAI_Type type)
{
switch (type)
{
Expand Down Expand Up @@ -1207,7 +1207,7 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
}
case ACTION_T_SUMMON_UNIQUE: //49
{
Creature* pCreature;
Creature* pCreature = nullptr;

MaNGOS::NearestCreatureEntryWithLiveStateInObjectRangeCheck u_check(*m_creature, action.summon_unique.creatureId, true, false, 100, true);
MaNGOS::CreatureLastSearcher<MaNGOS::NearestCreatureEntryWithLiveStateInObjectRangeCheck> searcher(pCreature, u_check);
Expand Down Expand Up @@ -1808,7 +1808,7 @@ void CreatureEventAI::ReceiveEmote(Player* pPlayer, uint32 text_emote)
}
}

#define HEALTH_STEPS 3
constexpr auto HEALTH_STEPS = 3;

void CreatureEventAI::DamageTaken(Unit* dealer, uint32& damage)
{
Expand Down

0 comments on commit d01056f

Please sign in to comment.