]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix mutation system debug assert (#32530)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Sun, 29 Sep 2024 21:37:31 +0000 (23:37 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 21:37:31 +0000 (13:37 -0800)
Content.Server/Botany/Systems/MutationSystem.cs

index 07a24d19f6badb27bf0f5c763ffd41b599c9de06..37b68d9475f1a605e19c13bfd498f74041155d00 100644 (file)
@@ -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)
                 {