diff options
author | megamage <none@none> | 2009-08-26 23:40:28 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-26 23:40:28 -0500 |
commit | 7cb2864d828d0f1f2ccd2fe15f23fa2ad28ae77e (patch) | |
tree | e1f3604450003ca5a52969dcfe6408fd65c6364a /src/game/SpellHandler.cpp | |
parent | f16b93d8d8ded579fbf7b560afa3bb6475816c02 (diff) |
*Fix a crash caused by spellclick enter vehicle. Thanks to nanouniko
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r-- | src/game/SpellHandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp index b6124e5d364..73544c9eed1 100644 --- a/src/game/SpellHandler.cpp +++ b/src/game/SpellHandler.cpp @@ -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; |