aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2013-07-24 12:40:58 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2013-07-24 12:40:58 +0200
commitc56664c5cae4b4ceef2edde85eeb9a57dd82bfaf (patch)
treedcc5cbe1dcba673d3c09992f2e1e6f83571f6453
parentad9e0c5bc472e09447ce435d02e5813a7989cc06 (diff)
Core/Spells: Add log for "spell_script_names" has no next rank spells
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 1bac09bddff..55588bf9b70 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -4850,6 +4850,11 @@ void ObjectMgr::LoadSpellScriptNames()
TC_LOG_ERROR(LOG_FILTER_SQL, "Scriptname:`%s` spell (spell_id:%d) is not first rank of spell.", scriptName, fields[0].GetInt32());
continue;
}
+ if (!sSpellMgr->GetNextSpellInChain(spellId))
+ {
+ TC_LOG_ERROR(LOG_FILTER_SQL, "Scriptname:`%s` spell (spell_id:%d) has no ranks of spell.", scriptName, fields[0].GetInt32());
+ continue;
+ }
while (spellInfo)
{
_spellScriptsStore.insert(SpellScriptsContainer::value_type(spellInfo->Id, GetScriptId(scriptName)));