From bf1efc0139dbd62a2aab06f5bb170924f2b49383 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Sat, 21 Sep 2024 15:39:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A8=83=E5=A8=83=E5=85=91=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_bag.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldsrv/action_bag.go b/worldsrv/action_bag.go index 8244a05..54e4f59 100644 --- a/worldsrv/action_bag.go +++ b/worldsrv/action_bag.go @@ -520,14 +520,14 @@ func CSDollChange(s *netlib.Session, packetid int, data interface{}, sid int64) pack := &bag.SCDollChange{} for _, item := range msg.Items { if item.ItemId == 0 { - continue + return nil } info := srvdata.GameItemMgr.Get(p.Platform, item.ItemId) if info == nil { - continue + return nil } if info.Type != common.ItemTypeDoll { - continue + return nil } bagInfo, rest, isF := BagMgrSingleton.AddItemsV2(&model.AddItemParam{