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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-06 15:23:25 -06:00
parent 93113cd3cc
commit 6f595b3038
3 changed files with 8 additions and 31 deletions
+7
View File
@@ -278,6 +278,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
{