Core/ObjectMgr: Move some npc_spellclick_spells and vehicle_accessory related errors to startup instead of post-startup runtime

This commit is contained in:
Machiavelli
2011-03-06 11:12:19 +01:00
parent df97ce7625
commit 6c4a0354a2
5 changed files with 27 additions and 10 deletions
@@ -248,8 +248,6 @@ void Vehicle::InstallAccessory(uint32 entry, int8 seatId, bool minion, uint8 typ
if (!me->HandleSpellClick(accessory, seatId))
{
sLog->outErrorDb("Vehicle entry %u in vehicle_accessory does not have a valid record in npc_spellclick_spells! Cannot join vehicle.",
m_creatureEntry);
accessory->AddObjectToRemoveList();
return;
}