aboutsummaryrefslogtreecommitdiff
path: root/src/game/CreatureEventAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-17 16:07:54 -0500
committermegamage <none@none>2009-04-17 16:07:54 -0500
commitad41b0c9e1d9d3a176d22cb42a33dfc1fb1aa55a (patch)
tree6500753f206d3843b9619f9210be1fb0d2a0ff2f /src/game/CreatureEventAI.cpp
parentb9d8bdeddde70359c4a3b115ccb646abb59357cc (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src/game/CreatureEventAI.cpp')
-rw-r--r--src/game/CreatureEventAI.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/CreatureEventAI.cpp b/src/game/CreatureEventAI.cpp
index 88e922bc16b..bcd3500cb68 100644
--- a/src/game/CreatureEventAI.cpp
+++ b/src/game/CreatureEventAI.cpp
@@ -573,8 +573,8 @@ void CreatureEventAI::ProcessAction(uint16 type, uint32 param1, uint32 param2, u
if (CreatureInfo const* ci = GetCreatureTemplateStore(param1))
{
//use default display
- if (ci->Modelid1)
- m_creature->SetDisplayId(ci->Modelid1);
+ if (ci->Modelid_A1)
+ m_creature->SetDisplayId(ci->Modelid_A1);
}
}
//if no param1, then use value from param2 (modelId)
@@ -993,8 +993,7 @@ void CreatureEventAI::ProcessAction(uint16 type, uint32 param1, uint32 param2, u
pObject = m_creature->SummonGameObject(param1, x, y, z, 0, 0, 0, 0, 0, param2);
if (!pObject)
{
- if (EAI_ErrorLevel > 0)
- error_db_log( "SD2: EventAI failed to spawn object %u. Spawn event %d is on creature %d", param1, EventId, m_creature->GetEntry());
+ sLog.outErrorDb("SD2: EventAI failed to spawn object %u. Spawn event %d is on creature %d", param1, EventId, m_creature->GetEntry());
}
}
break;