aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Server
diff options
context:
space:
mode:
authorQAston <none@none>2010-07-20 01:42:14 +0200
committerQAston <none@none>2010-07-20 01:42:14 +0200
commitf906976837502fa5aa81b982b901d1509f5aa0c4 (patch)
tree62f7798f963a556ea041628f8f9dbc878dd3b522 /src/server/game/Server
parentb5f7ac86eac6c300807ea2d5df4f6d2fae5bc4c8 (diff)
*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
Diffstat (limited to 'src/server/game/Server')
-rw-r--r--src/server/game/Server/Protocol/Handlers/SpellHandler.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
index b8a4a127824..a526c61a5e7 100644
--- a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
@@ -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)