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{