Skip to content

Commit

Permalink
fix(formats): solve WarMaterialAndSpecialEquipmentAssignmentFormatGen…
Browse files Browse the repository at this point in the history
…erator bug

Fixes the ammunition collection access bug
  • Loading branch information
CarlosPavajeau committed Aug 30, 2021
1 parent a5a36e3 commit 0bbd99c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private int MakeWeaponsAndAmmunitionInfo(IXLWorksheet worksheet,

for (var i = 0; i < format.Ammunition.Count; i++)
{
var ammunition = format.Weapons.ElementAt(i);
var ammunition = format.Ammunition.ElementAt(i);
var formatAmmunition =
format.WarMaterialAndSpecialEquipmentAssignmentFormatAmmunition.First(x =>
x.AmmunitionCode == ammunition.Code);
Expand Down

0 comments on commit 0bbd99c

Please sign in to comment.