From 9fc5e5815ba2a1b9ea68ca975aaa9b62145061c0 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 2 Nov 2023 11:05:17 +0800 Subject: [PATCH] update --- modules/hero/module.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hero/module.go b/modules/hero/module.go index 889fe1df5..7a653f072 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -1044,6 +1044,7 @@ func (this *Hero) GetRandomCardByCardPool(cardPool string, count int32) (cards [ hid string sz map[string]struct{} ) + sz = make(map[string]struct{}, count) for i := 0; i < int(count); i++ { hid, err = this.configure.GetHeroByPoolExcept(cardPool, sz) if err != nil {