Skip to content

Commit

Permalink
Fixed bug where player could take unavailable items onto dusty path
Browse files Browse the repository at this point in the history
  • Loading branch information
danapczynski committed Aug 3, 2014
1 parent bc36851 commit 41592e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 41592e7

Please sign in to comment.