Skip to content

Commit f8bbc31

Browse files
authored
fix(Solutions): Implement missing bounds check (space-wizards#30239)
1 parent 4fc8790 commit f8bbc31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎Content.Shared/Chemistry/EntitySystems/SolutionTransferSystem.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ private void AddSetTransferVerbs(Entity<SolutionTransferComponent> ent, ref GetV
7676
var user = args.User;
7777
foreach (var amount in DefaultTransferAmounts)
7878
{
79+
if (amount < comp.MinimumTransferAmount || amount > comp.MaximumTransferAmount)
80+
continue;
81+
7982
AlternativeVerb verb = new();
8083
verb.Text = Loc.GetString("comp-solution-transfer-verb-amount", ("amount", amount));
8184
verb.Category = VerbCategory.SetTransferAmount;

0 commit comments

Comments
 (0)