From 02d178013fc304043f97ae8d2c144b7cc47949b0 Mon Sep 17 00:00:00 2001 From: Antz Date: Mon, 5 Jun 2017 19:45:51 +0100 Subject: [PATCH] Fix SD3 Compile fail pt1 of 2 --- src/game/Object/Player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index 7086d939a..0db7bb92b 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -8439,6 +8439,11 @@ void Player::SendLoot(ObjectGuid guid, LootType loot_type) permission = OWNER_PERMISSION; } + // Inform Instance Data, may be scripts related to OnSkinning like The Beast in UBRS + if (InstanceData* mapInstance = creature->GetInstanceData()) + { + mapInstance->OnCreatureLooted(creature, LOOT_SKINNING); + } } // set group rights only for loot_type != LOOT_SKINNING else