diff options
| author | QAston <none@none> | 2009-03-06 23:28:01 +0100 |
|---|---|---|
| committer | QAston <none@none> | 2009-03-06 23:28:01 +0100 |
| commit | bdaf54067b1c412dfe0b059d3d1e136f37af387f (patch) | |
| tree | 87433cb389debcd85ba5ce26737938ea2d48432a /src/game/LootMgr.cpp | |
| parent | ab4b55f35127909f3bf94587f5f30c2126b1e4a1 (diff) | |
| parent | 13fc3dcd7e95288cd9482e7440df3b15a3c580cb (diff) | |
*Fix a crash and merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/LootMgr.cpp')
| -rw-r--r-- | src/game/LootMgr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/LootMgr.cpp b/src/game/LootMgr.cpp index 77d8c780e1e..da5b4343d24 100644 --- a/src/game/LootMgr.cpp +++ b/src/game/LootMgr.cpp @@ -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 { |
