Merge pull request #97 from ZhengPeiRu21/crashFix2

Crash fix when invalid item in collection database
This commit is contained in:
M'Dic
2022-08-27 07:33:47 -04:00
committed by GitHub

View File

@@ -423,6 +423,8 @@ public:
}
}
for (uint32 newItemEntryId : sT->collectionCache[accountId]) {
if (!sObjectMgr->GetItemTemplate(newItemEntryId))
continue;
Item* newItem = Item::CreateItem(newItemEntryId, 1, 0);
if (!newItem)
continue;