diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 885b060aa..8cedd2224 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -548,12 +548,12 @@ func (this *MapData) DropGirde() bool { } } if len(mp) < 2 { - for { + ilen := 2 - len(mp) + mp = make(map[int]struct{}, ilen) + for i := 0; i < ilen; i++ { n1, _ := rand.Int(rand.Reader, big.NewInt(int64(len(fill)))) mp[fill[n1.Int64()]] = struct{}{} - if len(mp) >= 2 { - break - } + } if this.iType == 3 { sp = 4