From 61a9138aba911211f98e32bb46b576bcbd59dd6d Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 6 Jan 2019 23:46:32 +0100 Subject: [PATCH] Core/GameObjects: mark spellid = 0 for casting gameobjects as valid to supress startup errors of certain gameobjects that does not contain any spells --- src/server/game/Globals/ObjectMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 64b89140dfd..1b432f8f762 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -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.",