This commit is contained in:
shoopea 2020-01-12 21:34:41 +08:00
parent d6b5147dfc
commit c26fb50fd2

4
obj.go
View File

@ -944,7 +944,7 @@ func loadObjItem2() error {
ItemTypeID: i.ItemTypeID,
Weight: i.Weight,
Craft: ChatWarsItemCraft{},
Names: make([]string, 1),
Names: make([]string, 0),
}
for _, n := range i.Names {
@ -1083,7 +1083,7 @@ func loadObjItem() error {
c.ObjID64 = id
c.ItemTypeID = type_id
c.Code = intl_id
n := make([]string, 1)
n := make([]string, 0)
n = append(n, name)
c.Names = n
c.Weight = weight