[7387] Check maxcount >= min count for item (not reference) record in loot templates DB tables..

This commit is contained in:
VladimirMangos 2009-03-06 04:56:51 +03:00
parent 0e7d940b90
commit a07718fe29
2 changed files with 8 additions and 1 deletions

View file

@ -275,6 +275,13 @@ bool LootStoreItem::IsValid(LootStore const& store, uint32 entry) const
store.GetName(), entry, itemid, chance);
return false;
}
if( maxcount < mincountOrRef) // wrong max count
{
sLog.outErrorDb("Table '%s' entry %d item %d: max count (%u) less that min count (%i) - skipped", store.GetName(), entry, itemid, uint32(maxcount), mincountOrRef);
return false;
}
}
else // mincountOrRef < 0
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7386"
#define REVISION_NR "7387"
#endif // __REVISION_NR_H__