Core/GameObjects: mark spellid = 0 for casting gameobjects as valid to supress startup errors of certain gameobjects that does not contain any spells

This commit is contained in:
Ovahlord
2019-01-06 23:46:32 +01:00
parent 9c8e8b48b7
commit 61a9138aba

View File

@@ -7257,7 +7257,7 @@ inline void CheckGOLinkedTrapId(GameObjectTemplate const* goInfo, uint32 dataN,
inline void CheckGOSpellId(GameObjectTemplate const* goInfo, uint32 dataN, uint32 N)
{
if (sSpellMgr->GetSpellInfo(dataN))
if (sSpellMgr->GetSpellInfo(dataN) || dataN == 0)
return;
TC_LOG_ERROR("sql.sql", "Gameobject (Entry: %u GoType: %u) have data%d=%u but Spell (Entry %u) not exist.",