mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9303] Restore skip one from startup (by DBC data) but not existed items.
This commit is contained in:
parent
dd2239eea9
commit
d7d4c2da9f
2 changed files with 5 additions and 4 deletions
|
|
@ -2071,13 +2071,14 @@ void ObjectMgr::LoadItemPrototypes()
|
|||
|
||||
for(int j = 0; j < MAX_OUTFIT_ITEMS; ++j)
|
||||
{
|
||||
if(entry->ItemId[j] <= 0)
|
||||
if (entry->ItemId[j] <= 0)
|
||||
continue;
|
||||
|
||||
uint32 item_id = entry->ItemId[j];
|
||||
|
||||
if(!GetItemPrototype(item_id))
|
||||
notFoundOutfit.insert(item_id);
|
||||
if (!GetItemPrototype(item_id))
|
||||
if (item_id != 40582) // nonexistent item by default but referenced in DBC, skip it from errors
|
||||
notFoundOutfit.insert(item_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9302"
|
||||
#define REVISION_NR "9303"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue