数组初始化

This commit is contained in:
meixiongfeng 2023-10-10 19:04:29 +08:00
parent bbc07a95d1
commit 423b03086c

View File

@ -360,6 +360,8 @@ func (this *configureComp) GetBuffGroupDataByLottery(lotteryId int32, addType in
}
if v, ok := this.buffLottery[lotteryId]; ok {
for i := 1; ; i++ {
szW = make([]int32, 0) // 数组初始化
sz = make([]*cfg.GameBufflotteryData, 0)
for k, v1 := range v { // k buffID v1 cfg.GameBufflotteryData
curWt = 0
if _, ok := ownerbuff[k]; !ok {