Index: GameObject.h
===================================================================
--- GameObject.h (revision 5260)
+++ GameObject.h (working copy)
@@ -23,6 +23,7 @@
#include "Object.h"
#include "LootMgr.h"
#include "Database/DatabaseEnv.h"
+#include "GameObjectAI.h"
// GCC have alternative #pragma pack(N) syntax and old gcc version not support pack(push,N), also any gcc version not support it at some platform
#if defined( __GNUC__ )
@@ -195,6 +196,8 @@
bool isVisibleForInState(Player const* u, bool inVisibleList) const;
GridReference<GameObject> &GetGridRef() { return m_gridRef; }
+
+ GameObjectAI* GetGameObjectAI() { return i_GameObjectAI; }
protected:
uint32 m_spellId;
time_t m_respawnTime; // (secs) time of next respawn (or despawn if GO have owner()),
@@ -210,5 +213,6 @@
uint32 m_DBTableGuid;
private:
GridReference<GameObject> m_gridRef;
+ GameObjectAI* i_GameObjectAI;
};
#endif