*Fix a crash caused by spellclick enter vehicle. Thanks to nanouniko

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-26 23:40:28 -05:00
parent f16b93d8d8
commit 7cb2864d82

View File

@@ -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;