From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Sun, 29 Sep 2024 21:37:31 +0000 (+0200) Subject: Fix mutation system debug assert (#32530) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=16325007d5fc3e80ef86cd3bd06f436f185e679a;p=space-station-14.git Fix mutation system debug assert (#32530) --- diff --git a/Content.Server/Botany/Systems/MutationSystem.cs b/Content.Server/Botany/Systems/MutationSystem.cs index 07a24d19f6..37b68d9475 100644 --- a/Content.Server/Botany/Systems/MutationSystem.cs +++ b/Content.Server/Botany/Systems/MutationSystem.cs @@ -27,7 +27,7 @@ public sealed class MutationSystem : EntitySystem { foreach (var mutation in _randomMutations.mutations) { - if (Random(mutation.BaseOdds * severity)) + if (Random(Math.Min(mutation.BaseOdds * severity, 1.0f))) { if (mutation.AppliesToPlant) {