fix craft
This commit is contained in:
parent
9ba5208600
commit
6b0d2bf914
3
item.go
3
item.go
@ -233,7 +233,7 @@ func addObjItemCraftItem(objID64 int64, itemID64 int64, quantity int64) error {
|
||||
}
|
||||
defer stmt.Close()
|
||||
|
||||
_, err = stmt.Exec(objID64, obj_craft_item, quantity)
|
||||
_, err = stmt.Exec(objID64, itemID64, quantity)
|
||||
logOnError(err, fmt.Sprintf("addObjItemCraftItem : update obj_craft_item(%d)", objID64))
|
||||
if err != nil {
|
||||
return err
|
||||
@ -349,6 +349,7 @@ func loadObjItem() error {
|
||||
if objItems[i].Craft != nil {
|
||||
log.Printf("loadObjItem : %s : loading craft for %s.\n", objItems[i].Code, objItems[i].Names[0])
|
||||
setObjItemCraft(objItems[i].ObjID64, objItems[i].Craft.Command, objItems[i].Craft.Mana)
|
||||
emptyObjItemCraftItem(objItems[i].ObjID64)
|
||||
for k, o := range objItems[i].Craft.Items {
|
||||
objItems[i].Craft.Items[k].ItemID64 = getObjItemID(o.Code, ``)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user