aboutsummaryrefslogtreecommitdiff
path: root/src/game/ZoneScript.h
diff options
context:
space:
mode:
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) {}