aboutsummaryrefslogtreecommitdiff
path: root/src/game/ZoneScript.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-03 21:47:38 -0500
committermegamage <none@none>2009-06-03 21:47:38 -0500
commit37f4bf6a04564d0633c8e4fb04f112d5bc290f94 (patch)
tree6fc46e0e842f06247057ee8d014159a055217ec9 /src/game/ZoneScript.h
parente858ac91eb62669abb086087d3c2516c3525b486 (diff)
*Fix the bug that triggers are visible.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ZoneScript.h')
-rw-r--r--src/game/ZoneScript.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/ZoneScript.h b/src/game/ZoneScript.h
index e0674d3fdd4..da8a71c6a92 100644
--- a/src/game/ZoneScript.h
+++ b/src/game/ZoneScript.h
@@ -21,6 +21,7 @@
#include "Common.h"
+struct CreatureData;
class Creature;
class GameObject;
@@ -29,7 +30,7 @@ class TRINITY_DLL_SPEC ZoneScript
public:
explicit ZoneScript() {}
- virtual uint32 GetCreatureEntry(uint32 guidlow, uint32 entry) { return entry; }
+ virtual uint32 GetCreatureEntry(uint32 guidlow, const CreatureData *data) { return data->id; }
virtual uint32 GetGameObjectEntry(uint32 guidlow, uint32 entry) { return entry; }
virtual void OnCreatureCreate(Creature *, bool add) {}