mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Fix a crash caused by spellclick enter vehicle. Thanks to nanouniko
--HG-- branch : trunk
This commit is contained in:
@@ -518,7 +518,9 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
|
||||
uint64 guid;
|
||||
recv_data >> guid;
|
||||
|
||||
Creature *unit = ObjectAccessor::GetCreatureOrPetOrVehicle(*_player, guid);
|
||||
// this will get something not in world. crash
|
||||
//Creature *unit = ObjectAccessor::GetCreatureOrPetOrVehicle(*_player, guid);
|
||||
Creature *unit = Unit::GetCreature(*_player, guid);
|
||||
|
||||
if(!unit)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user