mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
*Fix a crash caused by possess pet. Thanks to nanouniko
--HG-- branch : trunk
This commit is contained in:
@@ -526,8 +526,11 @@ 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)
|
||||
|
||||
Reference in New Issue
Block a user