* Added support for GAMEOBJECT_TYPE_TRAP and GAMEOBJECT_TYPE_SPELL_FOCUS to

* have modelid=0 since this is valid data for those GO types. More to the
* point removed the check at core load that resulted in an error being logged

--HG--
branch : trunk
This commit is contained in:
Brian
2009-12-21 17:30:02 -07:00
parent eee8e179a1
commit 0aa2069c73

View File

@@ -1575,7 +1575,7 @@ void ObjectMgr::LoadGameobjects()
continue;
}
if(!gInfo->displayId)
if(!gInfo->displayId && (!gInfo->type == GAMEOBJECT_TYPE_TRAP || !gInfo->type == GAMEOBJECT_TYPE_SPELL_FOCUS))
{
sLog.outErrorDb("Gameobject (GUID: %u Entry %u GoType: %u) doesn't have displayId (%u), not loaded.", guid, entry, gInfo->type, gInfo->displayId);
continue;