diff options
author | megamage <none@none> | 2009-07-16 12:06:07 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-16 12:06:07 +0800 |
commit | e152ff8ec5fc3282b0ab3d1740f05886f90335ed (patch) | |
tree | 296587187e967b314a15faa24757365112ff2cff /src/game/Player.cpp | |
parent | 208087ff6ee592150b1ed387bbc135566a02a359 (diff) |
[8183] Some gameobject despanw related fixes Author: VladimirMangos
* Implement use `consumable` field in gameobject template for gameobject required explcit despawn at use.
* Move gameobject template fields cech function from Gameobject to gameobject template class, and update callers.
* Cast spells at gameobject use with gameobject guid as original caster guid, as already used in some other cases. (skipped)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 004019ec1e6..fd27607a402 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -7564,7 +7564,7 @@ void Player::SendLoot(uint64 guid, LootType loot_type) if (go->getLootState() == GO_READY) { - uint32 lootid = go->GetLootId(); + uint32 lootid = go->GetGOInfo()->GetLootId(); //TODO: fix this big hack if((go->GetEntry() == BG_AV_OBJECTID_MINE_N || go->GetEntry() == BG_AV_OBJECTID_MINE_S)) |