From 37f4bf6a04564d0633c8e4fb04f112d5bc290f94 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 3 Jun 2009 21:47:38 -0500 Subject: *Fix the bug that triggers are visible. --HG-- branch : trunk --- src/game/ZoneScript.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/ZoneScript.h') 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) {} -- cgit v1.2.3