Core/LootMgr: Remove dead validation code from LoadLootTable
CID 1288389 Operands don't affect result (cherry picked from commit 47a119e4fa617319b283e7c3824241bc0b6775fb)
This commit is contained in:
1 parent
ae64c11b28
commit
80695181b9
1 file changed
+2
-8
@@ -151,14 +151,8 @@ uint32 LootStore::LoadLootTable()
|
||||
bool needsquest = fields[4].GetBool();
|
||||
uint16 lootmode = fields[5].GetUInt16();
|
||||
uint8 groupid = fields[6].GetUInt8();
|
||||
int32 mincount = fields[7].GetUInt8();
|
||||
int32 maxcount = fields[8].GetUInt8();
|
||||
|
||||
if (maxcount > std::numeric_limits<uint8>::max())
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Table '%s' Entry %d Item %d: MaxCount value (%u) to large. must be less %u - skipped", GetName(), entry, item, maxcount, std::numeric_limits<uint8>::max());
|
||||
continue; // error already printed to log/console.
|
||||
}
|
||||
uint8 mincount = fields[7].GetUInt8();
|
||||
uint8 maxcount = fields[8].GetUInt8();
|
||||
|
||||
if (groupid >= 1 << 7) // it stored in 7 bit field
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user