diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-04-01 20:31:15 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-04-01 20:31:15 +0200 |
| commit | e1bacef346a859420be8c76129ebc568f04380d0 (patch) | |
| tree | 23986678db02f5e508c13f6dda66df6f1baac7bf /src/server/game/AI/SmartScripts | |
| parent | 2cc51e24826bdaf29f364f16e49e5a37a6dd85d5 (diff) | |
Core: Removed unused functions (leftovers from sd2, was needed when scripts were built as separate dll)
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 91e34d83a5c..48517c60a9b 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -234,7 +234,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u } else { - if (CreatureInfo const* ci = GetCreatureTemplateStore((*itr)->ToCreature()->GetEntry())) + if (CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate((*itr)->ToCreature()->GetEntry())) { if ((*itr)->ToCreature()->getFaction() != ci->faction_A) { @@ -266,7 +266,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u //set model based on entry from creature_template if (e.action.morphOrMount.creature) { - if (CreatureInfo const* ci = GetCreatureTemplateStore(e.action.morphOrMount.creature)) + if (CreatureInfo const* ci = ObjectMgr::GetCreatureTemplate(e.action.morphOrMount.creature)) { uint32 display_id = sObjectMgr->ChooseDisplayId(0, ci); (*itr)->ToCreature()->SetDisplayId(display_id); @@ -940,7 +940,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u { if (e.action.morphOrMount.creature > 0) { - if (CreatureInfo const* cInfo = GetCreatureTemplateStore(e.action.morphOrMount.creature)) + if (CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(e.action.morphOrMount.creature)) { uint32 display_id = sObjectMgr->ChooseDisplayId(0, cInfo); (*itr)->ToUnit()->Mount(display_id); |
