From b3cfcab5fbf6546141e9ca8bd4736453c8aed633 Mon Sep 17 00:00:00 2001 From: KoRnoliX <63583686+dabrowskif@users.noreply.github.com> Date: Thu, 26 Aug 2021 23:22:00 +0200 Subject: [PATCH] Fix negative quest scroll number on bundle purchase (#13415) --- website/common/script/ops/buy/purchase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/common/script/ops/buy/purchase.js b/website/common/script/ops/buy/purchase.js index 02c00dec26..2808cd2b98 100644 --- a/website/common/script/ops/buy/purchase.js +++ b/website/common/script/ops/buy/purchase.js @@ -54,7 +54,7 @@ function purchaseItem (user, item, price, type, key) { } else if (type === 'bundles') { const subType = item.type; forEach(item.bundleKeys, bundledKey => { - if (!user.items[subType][bundledKey] || user.items[subType][key] < 0) { + if (!user.items[subType][bundledKey] || user.items[subType][bundledKey] < 0) { user.items[subType][bundledKey] = 0; } user.items[subType][bundledKey] += 1;