Core/SmartAI: fixed Gossip Select event

--HG--
branch : trunk
This commit is contained in:
Rat
2010-11-03 19:39:53 +01:00
parent c9cf2f059f
commit 2604250c3c
3 changed files with 11 additions and 12 deletions

View File

@@ -1760,7 +1760,8 @@ void SmartScript::ProcessEvent(SmartScriptHolder &e, Unit* unit, uint32 var0, ui
}
case SMART_EVENT_GOSSIP_SELECT:
{
if ((e.event.gossip.sender != var0 || e.event.gossip.action != var1))
sLog.outDebug("SmartScript: Gossip Select: action %u menu %u", var0, var1);
if (e.event.gossip.sender != var0 || e.event.gossip.action != var1)
return;
ProcessAction(e, unit, var0, var1);
break;
@@ -1920,9 +1921,9 @@ void SmartScript::FillScript(SmartAIEventList e, WorldObject* obj, AreaTriggerEn
if (e.empty())
{
if (obj)
sLog.outErrorDb("SmartScript: EventMap for Entry %u is empty but is using SmartScript.", obj->GetEntry());
sLog.outDebug("SmartScript: EventMap for Entry %u is empty but is using SmartScript.", obj->GetEntry());
if (at)
sLog.outErrorDb("SmartScript: EventMap for AreaTrigger %u is empty but is using SmartScript.", at->id);
sLog.outDebug("SmartScript: EventMap for AreaTrigger %u is empty but is using SmartScript.", at->id);
return;
}
for (SmartAIEventList::iterator i = e.begin(); i != e.end(); ++i)