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 :-)
This commit is contained in:
Charles A Edwards 2015-03-23 10:56:09 +00:00
parent cd23a589e0
commit 8f2743f880

View File

@ -7642,7 +7642,7 @@ bool PlayerCondition::IsValid(uint16 entry, ConditionType condition, uint32 valu
}
case CONDITION_GAMEOBJECT_IN_RANGE:
{
if (!sCreatureStorage.LookupEntry<GameObjectInfo>(value1))
if (!sGOStorage.LookupEntry<GameObjectInfo>(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;