From 818ed5c998476c6f5a0d6e59e77d3183bd9f67a6 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 8 Aug 2020 12:07:17 +0200 Subject: [PATCH] fix --- job.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/job.go b/job.go index ebd2b2e..35422c1 100644 --- a/job.go +++ b/job.go @@ -2683,13 +2683,13 @@ func jobVaultVal(j Job) { switch item.ItemTypeID { case cacheObjSubType[`item_part`]: price = getObjItemVal(v.ItemID64, v.Quality) - part += price * v.Quantity + part += price * float64(v.Quantity) case cacheObjSubType[`item_recipe`]: price = getObjItemVal(v.ItemID64, v.Quality) - rec += price * v.Quantity + rec += price * float64(v.Quantity) case cacheObjSubType[`item_other`]: price = getObjItemVal(v.ItemID64, v.Quality) - other += price * v.Quantity + other += price * float64(v.Quantity) default: } log.Printf("jobVaultVal : %s (%s) - %s => %f\n", v.Code, v.Quality, item.Names[0], price)