Core/Scripts: Corrected previous commit and added a few AI hooks to GameObjectAI

This commit is contained in:
Shauren
2012-04-14 18:26:16 +02:00
parent b7a9db16d6
commit 4f14693ef2
4 changed files with 16 additions and 13 deletions

View File

@@ -959,7 +959,7 @@ GameObjectAI* ScriptMgr::GetGameObjectAI(GameObject* go)
ASSERT(go);
GET_SCRIPT_RET(GameObjectScript, go->GetScriptId(), tmpscript, NULL);
tmpscript->GetAI(go);
return tmpscript->GetAI(go);
}
bool ScriptMgr::OnAreaTrigger(Player* player, AreaTriggerEntry const* trigger)