aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/ScriptMgr.h
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-08-06 20:42:42 +0200
committerXTZGZoReX <none@none>2010-08-06 20:42:42 +0200
commit731eaf72cbd0c4162efd63a16ea6f950b053c50a (patch)
treed68fd735b5c507a89781888cefdfa95f6abe2acc /src/server/game/Scripting/ScriptMgr.h
parent23c434cfd86d5c74b9d0a62b89d3423ef3551e15 (diff)
* Example on AI script conversion (and minor correction in CreatureScript).
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
-rw-r--r--src/server/game/Scripting/ScriptMgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h
index 64d8e92abea..842befaf057 100644
--- a/src/server/game/Scripting/ScriptMgr.h
+++ b/src/server/game/Scripting/ScriptMgr.h
@@ -487,7 +487,7 @@ class CreatureScript : public ScriptObject, public UpdatableScript<Creature>
virtual uint32 OnDialogStatus(Player* player, Creature* creature) { return 0; }
// Called when a CreatureAI object is needed for the creature.
- virtual CreatureAI* OnGetAI() { return NULL; }
+ virtual CreatureAI* OnGetAI(Creature* creature) const { return NULL; }
};
class GameObjectScript : public ScriptObject, public UpdatableScript<GameObject>