[8810] error output at loading when creature_movement has nonexistant spell

This commit is contained in:
balrok 2009-11-13 13:56:59 +01:00
parent ec808c9d3d
commit 25ab89ce97
2 changed files with 7 additions and 1 deletions

View file

@ -141,6 +141,12 @@ void WaypointManager::Load()
}
}
if (be.spell && ! sSpellStore.LookupEntry(be.spell))
{
sLog.outErrorDb("Table creature_movement references unknown spellid %u. Skipping id %u.", be.spell, id);
continue;
}
if (be.emote)
{
if (!sEmotesStore.LookupEntry(be.emote))