Fix mutation system debug assert (#32530)
This commit is contained in:
parent
f6ceaa7d10
commit
16325007d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue