From 979590db9ff2185c080d7e4e7d0a9d70249b7f71 Mon Sep 17 00:00:00 2001 From: KimLS Date: Mon, 6 Apr 2015 17:42:15 -0700 Subject: [PATCH] Fix for lower than intended drop rates for drop limit loot tables after the min drop changes --- zone/loottables.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zone/loottables.cpp b/zone/loottables.cpp index 5d4b6f92b..3170729d0 100644 --- a/zone/loottables.cpp +++ b/zone/loottables.cpp @@ -184,8 +184,7 @@ void ZoneDatabase::AddLootDropToNPC(NPC* npc,uint32 lootdrop_id, ItemList* iteml } } - int item_count = zone->random.Int(mindrop, droplimit); - for(int i = mindrop; i < item_count; ++i) { + for(int i = mindrop; i < droplimit; ++i) { float roll = (float)zone->random.Real(0.0, roll_t); for(uint32 j = 0; j < lds->NumEntries; ++j) { const Item_Struct* db_item = GetItem(lds->Entries[j].item_id);