This commit is contained in:
shoopea 2020-01-12 21:22:12 +08:00
parent 266aebd401
commit 81d24694a8

6
obj.go
View File

@ -928,7 +928,7 @@ func loadObjItem2() error {
log.Printf("loadObjItems2 : %s : name missing.\n", i.Code)
} else {
if obj, ok := cacheObjItem[i.Code]; ok {
log.Printf("loadObjItem2 : %s : duplicate code found. Belong to %s\n", i2.Code, n, obj.Code)
log.Printf("loadObjItem2 : %s : duplicate code found. Belong to %s\n", i.Code, n, obj.Code)
} else {
i2 := ChatWarsItem{
Auction: i.Auction,
@ -948,9 +948,9 @@ func loadObjItem2() error {
}
}
cacheObjItem[i.Code] = *i2
cacheObjItem[i.Code] = i2
for _, n := range i.Names {
cacheObjItem[n] = *i2
cacheObjItem[n] = i2
}
}
}