From 2be0207c1d185be7683cc9a20664d967e826adc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Orellana?= Date: Tue, 4 Oct 2011 20:14:30 -0300 Subject: [PATCH] Core/GameObjects: DestructibleGameObjects only have display info in intact state --- src/server/game/Entities/GameObject/GameObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 4ec77e38bc..ccd7ad4133 100755 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1660,7 +1660,7 @@ void GameObject::SendCustomAnim(uint32 anim) bool GameObject::IsInRange(float x, float y, float z, float radius) const { - GameObjectDisplayInfoEntry const* info = sGameObjectDisplayInfoStore.LookupEntry(GetUInt32Value(GAMEOBJECT_DISPLAYID)); + GameObjectDisplayInfoEntry const* info = sGameObjectDisplayInfoStore.LookupEntry(m_goInfo->displayId); if (!info) return IsWithinDist3d(x, y, z, radius);