From b2386a3a3e5709b7e466f6579beb51ebf5f9649d Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Wed, 8 Nov 2023 13:36:25 +0800 Subject: [PATCH] update --- modules/entertainment/xxlPlat.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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