fix(Core): fix chests not despawning when opened in group (2) (#5387)
* fix(Core): fix chests not despawning when opened in group * fix(Core): fix crashes in pr #5371 * Replaced nullptr checks * Used if with initializer instead of separate scope
This commit is contained in:
@@ -111,6 +111,7 @@ enum LootSlotType
|
||||
class Player;
|
||||
class LootStore;
|
||||
class ConditionMgr;
|
||||
class GameObject;
|
||||
struct Loot;
|
||||
|
||||
struct LootStoreItem
|
||||
@@ -313,6 +314,7 @@ struct Loot
|
||||
|
||||
// GUID of container that holds this loot (item_instance.entry), set for items that can be looted
|
||||
ObjectGuid containerGUID;
|
||||
GameObject* sourceGameObject{nullptr};
|
||||
|
||||
Loot(uint32 _gold = 0) : gold(_gold) { }
|
||||
~Loot() { clear(); }
|
||||
|
||||
Reference in New Issue
Block a user