fix g_deposit_all
This commit is contained in:
parent
8feff19999
commit
e205399d63
4
job.go
4
job.go
@ -716,7 +716,8 @@ func jobGDeposit(j Job) {
|
||||
var res, misc, alch, craft, equip bool = false, false, false, false, false
|
||||
log.Printf("jobGDeposit : Checking items (%d).\n", len(p.ResObjID64))
|
||||
if len(p.ResObjID64) > 0 {
|
||||
obj, err := getObjItem(p.ResObjID64[0])
|
||||
for i := range p.ResObjID64 {
|
||||
obj, err := getObjItem(p.ResObjID64[i])
|
||||
logOnError(err, "jobGDeposit : getObjItem")
|
||||
if err == nil {
|
||||
switch obj.ItemTypeID {
|
||||
@ -738,6 +739,7 @@ func jobGDeposit(j Job) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
log.Printf("jobGDeposit : Sending messages.\n")
|
||||
var delay int64 = 0
|
||||
if res {
|
||||
|
Loading…
Reference in New Issue
Block a user