From 8f2743f880c22b05138823d6dba4fd01454c5b11 Mon Sep 17 00:00:00 2001 From: Charles A Edwards Date: Mon, 23 Mar 2015 10:56:09 +0000 Subject: [PATCH] Incorrect data structure used Data structure that holds data from the gameobject_template table should be used, not the creature_template table! Oops, my fault :-) --- src/game/Object/ObjectMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Object/ObjectMgr.cpp b/src/game/Object/ObjectMgr.cpp index 49a84385..e7a5aeee 100644 --- a/src/game/Object/ObjectMgr.cpp +++ b/src/game/Object/ObjectMgr.cpp @@ -7642,7 +7642,7 @@ bool PlayerCondition::IsValid(uint16 entry, ConditionType condition, uint32 valu } case CONDITION_GAMEOBJECT_IN_RANGE: { - if (!sCreatureStorage.LookupEntry(value1)) + if (!sGOStorage.LookupEntry(value1)) { sLog.outErrorDb("Game object in range condition (entry %u, type %u) has an invalid value in value1 (gameobject). (Game object %u does not exist in the database), skipping.", entry, condition, value1); return false;