mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Merge pull request #97 from ZhengPeiRu21/crashFix2
Crash fix when invalid item in collection database
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user