Co-authored-by: vanx <vanx#5477>
}
/// <summary>
- /// Removes an objective to this mind.
+ /// Removes an objective from this mind.
/// </summary>
/// <returns>Returns true if the removal succeeded.</returns>
public bool TryRemoveObjective(int index)
{
- if (_objectives.Count >= index) return false;
+ if (index < 0 || index >= _objectives.Count) return false;
var objective = _objectives[index];
}
for (var i = 0; i < objectives.Count; i++)
{
- shell.WriteLine($"- [{i + 1}] {objectives[i].Conditions[0].Title}");
+ shell.WriteLine($"- [{i}] {objectives[i].Conditions[0].Title}");
}
}