This needs to be inverted
This commit is contained in:
parent
3b3c75adfd
commit
427f014cff
1 changed files with 1 additions and 1 deletions
2
pack.go
2
pack.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue