diff options
| author | megamage <none@none> | 2009-05-09 14:08:11 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-09 14:08:11 -0500 |
| commit | 08a0c543d1bde434a2d994ae3ab71035343c8039 (patch) | |
| tree | 18bf027a87b6bcc1df5c5a947e306e94d4cc3b1d /src | |
| parent | 0681a2131edf0e05adfe1794829f48fe7a4742e3 (diff) | |
*Fix some typos of script functions.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/CreatureAI.cpp | 4 | ||||
| -rw-r--r-- | src/game/GameObject.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index 5fd35150b52..5cde80aaccb 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -86,14 +86,14 @@ void CreatureAI::DoZoneInCombat(Creature* creature) if(!creature->getVictim()) { if(Unit *target = creature->SelectNearestTarget()) - AttackStart(target); + creature->AI()->AttackStart(target); else if(creature->isSummon()) { if(Unit *summoner = ((TempSummon*)creature)->GetSummoner()) { if(summoner->getVictim() && (creature->IsFriendlyTo(summoner) || creature->IsHostileTo(summoner->getVictim()))) - AttackStart(summoner->getVictim()); + creature->AI()->AttackStart(summoner->getVictim()); } } } diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 1a2ed5fb6db..540ea1e0dd7 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -174,7 +174,7 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa //Normally non-players do not teleport to other maps. if(map->IsDungeon() && ((InstanceMap*)map)->GetInstanceData()) { - ((InstanceMap*)map)->GetInstanceData()->OnObjectCreate(this); + ((InstanceMap*)map)->GetInstanceData()->OnObjectCreate(this, true); } return true; |
