From 676770156eedb78fcdb41c56586f6275fc3f73e3 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 10 Aug 2022 13:40:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=A3=85=E5=A4=87=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/equipment/modelEquipment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/equipment/modelEquipment.go b/modules/equipment/modelEquipment.go index 2c32c57c8..3b3bee65e 100644 --- a/modules/equipment/modelEquipment.go +++ b/modules/equipment/modelEquipment.go @@ -84,7 +84,7 @@ func (this *modelEquipmentComp) AddEquipments(uId string, cIds map[string]uint32 } add = make(map[string]*pb.DB_Equipment) update = make(map[string]*pb.DB_Equipment) - change = make([]*pb.DB_Equipment, len(equipments)) + change = make([]*pb.DB_Equipment, 0, len(equipments)) for k, v := range cIds { iskeep = false for _, equipment := range equipments {