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:
parent
cd23a589e0
commit
8f2743f880
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user