From 98fd748b9398e77ed95e764869c63a71b0b47572 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 5 Jan 2020 14:37:32 +0800 Subject: [PATCH] fix --- job.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/job.go b/job.go index 1a80034..b68b4f6 100644 --- a/job.go +++ b/job.go @@ -1278,17 +1278,17 @@ func jobGWithdraw(j Job) { if id != 0 { obj, _ := getObjItem(id) switch obj.ItemTypeID { - case codeObjSubType[`item_res`]: + case cacheObjSubTypefix[`item_res`]: p.Status = p.Status | 1 - case codeObjSubType[`item_alch`]: + case cacheObjSubType[`item_alch`]: p.Status = p.Status | 2 - case codeObjSubType[`item_misc`]: + case cacheObjSubType[`item_misc`]: p.Status = p.Status | 4 - case codeObjSubType[`item_recipe`]: + case cacheObjSubType[`item_recipe`]: p.Status = p.Status | 8 - case codeObjSubType[`item_part`]: + case cacheObjSubType[`item_part`]: p.Status = p.Status | 16 - case codeObjSubType[`item_other`]: + case cacheObjSubType[`item_other`]: p.Status = p.Status | 32 default: log.Printf("jobGWithdraw : No handler for item type #%d.\n", obj.ItemTypeID)