mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +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,12 +2071,13 @@ void ObjectMgr::LoadItemPrototypes()
|
||||||
|
|
||||||
for(int j = 0; j < MAX_OUTFIT_ITEMS; ++j)
|
for(int j = 0; j < MAX_OUTFIT_ITEMS; ++j)
|
||||||
{
|
{
|
||||||
if(entry->ItemId[j] <= 0)
|
if (entry->ItemId[j] <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
uint32 item_id = entry->ItemId[j];
|
uint32 item_id = entry->ItemId[j];
|
||||||
|
|
||||||
if(!GetItemPrototype(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);
|
notFoundOutfit.insert(item_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9302"
|
#define REVISION_NR "9303"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue