diff --git a/modules/island/api_refresheroshop.go b/modules/island/api_refresheroshop.go index b8c63e191..f6f5970bf 100644 --- a/modules/island/api_refresheroshop.go +++ b/modules/island/api_refresheroshop.go @@ -33,7 +33,7 @@ func (this *apiComp) RefresHeroShop(session comm.IUserSession, req *pb.IsLandRef } info.Refreshed++ pricekey := this.module.ModuleTools.GetGlobalConf().PuggsyBuy - if res, err := this.module.ModuleTools.GetPriceGroupCost(pricekey, info.Refreshed); len(res) > 0 { + if res, err := this.module.ModuleTools.GetPriceGroupCost(pricekey, info.Refreshed); err == nil { need = append(need, res...) } else { errdata = &pb.ErrorData{