Browse Source

added check for loot drops table being empty

Image 3 years ago
parent
commit
9aedae89f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/zoneserver.cpp

+ 1 - 1
EQ2/source/WorldServer/zoneserver.cpp

@@ -2335,7 +2335,7 @@ void ZoneServer::AddLoot(NPC* npc){
 
 						//LogWrite(PLAYER__DEBUG, 0, "Player", "Probability:%f  Table Chance: '%f'", table->lootdrop_probability, chancetable);
 						loot_drops = GetLootDrops(*loot_list_itr);
-						if (loot_drops) {
+						if (loot_drops && loot_drops->size() > 0) {
 							LootDrop* drop = 0;
 							int16 count = 0;