xy 2 日 前
コミット
e05257ee8a
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/server/hall/shop/shop.go

+ 2 - 1
src/server/hall/shop/shop.go

@@ -12,9 +12,10 @@ import (
 	"github.com/name5566/leaf/gate"
 )
 
-var list []*msg.ShopItem = make([]*msg.ShopItem, 0)
+var list []*msg.ShopItem = nil
 
 func init() {
+	list = make([]*msg.ShopItem, 0)
 	console.Log("注册BuyShopItem")
 }