fix(Solutions): Implement missing bounds check (#30239)

This commit is contained in:
Brandon Hu
2024-08-04 04:13:09 +00:00
committed by GitHub
parent 4fc8790452
commit f8bbc31903

View File

@@ -76,6 +76,9 @@ public sealed class SolutionTransferSystem : EntitySystem
var user = args.User;
foreach (var amount in DefaultTransferAmounts)
{
if (amount < comp.MinimumTransferAmount || amount > comp.MaximumTransferAmount)
continue;
AlternativeVerb verb = new();
verb.Text = Loc.GetString("comp-solution-transfer-verb-amount", ("amount", amount));
verb.Category = VerbCategory.SetTransferAmount;