aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Object.h')
-rw-r--r--src/game/Object.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Object.h b/src/game/Object.h
index 8eb26784b21..547bde3a500 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -29,6 +29,7 @@
#include "ObjectDefines.h"
#include "GridDefines.h"
#include "CreatureAI.h"
+#include "Map.h"
#include <set>
#include <string>
@@ -479,7 +480,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object
Creature* SummonTrigger(float x, float y, float z, float ang, uint32 dur, CreatureAI* (*GetAI)(Creature*) = NULL);
bool isActive() const { return m_isActive; }
void setActive(bool isActive);
- template<class NOTIFIER> void VisitNearbyObject(const float &radius, NOTIFIER &notifier) const;
+ template<class NOTIFIER> void VisitNearbyObject(const float &radius, NOTIFIER &notifier) const { GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier); }
protected:
explicit WorldObject();
std::string m_name;