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;