fix append
This commit is contained in:
parent
1f74136180
commit
2fd9aeb61e
78
bindata.go
78
bindata.go
File diff suppressed because one or more lines are too long
4
item.go
4
item.go
@ -305,7 +305,9 @@ func loadObjItem() error {
|
||||
}
|
||||
objItemsBuf = make([]ChatWarsItem, 0)
|
||||
err = json.Unmarshal(b, &objItemsBuf)
|
||||
objItems = append(objItems, objItemsBuf)
|
||||
for _, i := range objItemsBuf {
|
||||
objItems = append(objItems, i)
|
||||
}
|
||||
log.Printf("%d items parsed from %s.\n", len(objItemsBuf), a)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user