From 41592e79c7311d7879093fe584a02b669fdc9883 Mon Sep 17 00:00:00 2001 From: Dan Apczynski Date: Sun, 3 Aug 2014 01:34:10 -0700 Subject: [PATCH] Fixed bug where player could take unavailable items onto dusty path --- script/path.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/path.js b/script/path.js index cae13aa37..25689dc25 100644 --- a/script/path.js +++ b/script/path.js @@ -178,6 +178,7 @@ var Path = { var have = $SM.get('stores["'+k+'"]'); var num = Path.outfit[k]; num = typeof num == 'number' ? num : 0; + if (have < num) { num = have; } var numAvailable = $SM.get('stores["'+k+'"]', true); var row = $('div#outfit_row_' + k.replace(' ', '-'), outfit); if((store.type == 'tool' || store.type == 'weapon') && have > 0) {