Skip to content

Commit

Permalink
add more todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jun 13, 2024
1 parent d421673 commit 4e4fd0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game-lib/Model/Missions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public Missions DeepClone(MissionSites clonedMissionSites)
// kja getting "more than one elem" here on BasicAIPlayer plays game test.
// This denotes issue with busted site IDs with the new mission generation logic
// Root cause identified: see UfoGameLib.Model.Faction.CreateMissionSites
// kja this dup key issue was not immediately caught, and I got in UI two mission sited with ID "1".
// Only next turn errored with Error: "An item with the same key has already been added. Key: 1"
MissionSite clonedMissionSite = clonedMissionSites.Single(clonedSite => clonedSite.Id == mission.Site.Id);
return mission.DeepClone(clonedMissionSite);
}));
Expand Down

0 comments on commit 4e4fd0e

Please sign in to comment.