*Remove assertion from packet handler. Assertions should not be put in such places because we can't trust clients nor network.

*Do not allow to charm mounted units.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-20 01:42:14 +02:00
parent b5f7ac86ea
commit f906976837
5 changed files with 10 additions and 8 deletions
@@ -538,11 +538,7 @@ void WorldSession::HandleSpellClick(WorldPacket & recv_data)
// TODO: Unit::SetCharmedBy: 28782 is not in world but 0 is trying to charm it! -> crash
if (!unit->IsInWorld())
{
sLog.outCrash("Spell click target %u is not in world!", unit->GetEntry());
assert(false);
return;
}
SpellClickInfoMapBounds clickPair = objmgr.GetSpellClickInfoMapBounds(unit->GetEntry());
for (SpellClickInfoMap::const_iterator itr = clickPair.first; itr != clickPair.second; ++itr)