Fix build with GCC (it seems like it doesn't allow using references to temporary objects).
This commit is contained in:
@@ -1338,7 +1338,8 @@ void CreatureEventAI::ReceiveEmote(Player* player, uint32 textEmote)
|
||||
cond.mConditionValue1 = (*itr).Event.receive_emote.conditionValue1;
|
||||
cond.mConditionValue2 = (*itr).Event.receive_emote.conditionValue2;
|
||||
|
||||
if (cond.Meets(ConditionSourceInfo(player)))
|
||||
ConditionSourceInfo srcInfo = ConditionSourceInfo(player);
|
||||
if (cond.Meets(srcInfo))
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_DATABASE_AI, "CreatureEventAI: ReceiveEmote CreatureEventAI: Condition ok, processing");
|
||||
ProcessEvent(*itr, player);
|
||||
|
||||
Reference in New Issue
Block a user