Fix SD3 Compile fail pt1 of 2

This commit is contained in:
Antz 2017-06-05 19:45:51 +01:00 committed by Antz
parent 863285a59c
commit 02d178013f

View file

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