mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
commit
45926662db
@ -83,6 +83,9 @@ void LootObject::Refresh(Player* bot, ObjectGuid lootGUID)
|
|||||||
bool isQuestItemOnly = false;
|
bool isQuestItemOnly = false;
|
||||||
|
|
||||||
GameObjectQuestItemList const* items = sObjectMgr->GetGameObjectQuestItemList(go->GetEntry());
|
GameObjectQuestItemList const* items = sObjectMgr->GetGameObjectQuestItemList(go->GetEntry());
|
||||||
|
if (!items)
|
||||||
|
return;
|
||||||
|
|
||||||
for (int i = 0; i < MAX_GAMEOBJECT_QUEST_ITEMS; i++)
|
for (int i = 0; i < MAX_GAMEOBJECT_QUEST_ITEMS; i++)
|
||||||
{
|
{
|
||||||
if (i >= items->size())
|
if (i >= items->size())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user