fix(Solutions): Implement missing bounds check (#30239)
This commit is contained in:
@@ -76,6 +76,9 @@ public sealed class SolutionTransferSystem : EntitySystem
|
|||||||
var user = args.User;
|
var user = args.User;
|
||||||
foreach (var amount in DefaultTransferAmounts)
|
foreach (var amount in DefaultTransferAmounts)
|
||||||
{
|
{
|
||||||
|
if (amount < comp.MinimumTransferAmount || amount > comp.MaximumTransferAmount)
|
||||||
|
continue;
|
||||||
|
|
||||||
AlternativeVerb verb = new();
|
AlternativeVerb verb = new();
|
||||||
verb.Text = Loc.GetString("comp-solution-transfer-verb-amount", ("amount", amount));
|
verb.Text = Loc.GetString("comp-solution-transfer-verb-amount", ("amount", amount));
|
||||||
verb.Category = VerbCategory.SetTransferAmount;
|
verb.Category = VerbCategory.SetTransferAmount;
|
||||||
|
|||||||
Reference in New Issue
Block a user