Skip to content

Commit

Permalink
fixing issue with some items not being auto looted
Browse files Browse the repository at this point in the history
  • Loading branch information
noodleses committed Jan 7, 2022
1 parent 6d34b1b commit f79bb2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Scripts/Items/Corpses/Corpse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ private void AssignInstancedLoot(IEnumerable<Item> items)
return;
}

if (m_InstancedItems == null)
items = AutoLootItems(items.ToList(), this);

if (m_InstancedItems == null)
{
m_InstancedItems = new Dictionary<Item, InstancedItemInfo>();
}
Expand Down

0 comments on commit f79bb2d

Please sign in to comment.