mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-17 01:15:42 +01:00
prevent rand.Intn panic
This commit is contained in:
@@ -352,6 +352,10 @@ func LoadConfig() (*Config, error) {
|
|||||||
c.RealClientMode = ZZ
|
c.RealClientMode = ZZ
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.GameplayOptions.MinFeatureWeapons > c.GameplayOptions.MaxFeatureWeapons {
|
||||||
|
c.GameplayOptions.MinFeatureWeapons = c.GameplayOptions.MaxFeatureWeapons
|
||||||
|
}
|
||||||
|
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user