mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user