This needs to be inverted

This commit is contained in:
Hamcha 2019-05-31 01:29:22 +02:00
parent 3b3c75adfd
commit 427f014cff
Signed by: hamcha
GPG Key ID: A40413D21021EAEE
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func MakePack(schema PackSchema) Pack {
var chosenProb = rand.Float32()
for _, alt := range slot.Alternate {
currentProb += alt.Probability
if chosenProb > currentProb {
if currentProb > chosenProb {
provider = alt.Provider
break
}