[Fix] Refactor project
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user