[Fix] Refactor project

This commit is contained in:
2026-03-02 12:49:12 +07:00
parent f65976796d
commit f52131f755
44 changed files with 449 additions and 404 deletions
+4 -3
View File
@@ -12,11 +12,12 @@ namespace YachtDice.Dice
public DiceDefinition FindById(string id)
{
for (int i = 0; i < dice.Count; i++)
foreach (var t in dice)
{
if (dice[i] != null && dice[i].Id == id)
return dice[i];
if (t != null && t.Id == id)
return t;
}
return null;
}