From dca3faa2f9be034e532747439c1c03ca2dea1f3e Mon Sep 17 00:00:00 2001 From: Andrea Rendine Date: Thu, 30 Apr 2015 16:57:18 +0200 Subject: [PATCH] Fixed variable name "k" still refers to the English string, while "lk" carries the translated value. --- script/room.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/room.js b/script/room.js index a6c543b..dc11abe 100644 --- a/script/room.js +++ b/script/room.js @@ -797,7 +797,7 @@ var Room = { $SM.set('stores["'+k+'"]', 0); } - k = _(k); + lk = _(k); // thieves? if(typeof $SM.get('game.thieves') == 'undefined' && num > 5000 && $SM.get('features.location.world')) { @@ -806,14 +806,14 @@ var Room = { if(row.length === 0 && num > 0) { row = $('
').attr('id', id).addClass('storeRow'); - $('
').addClass('row_key').text(k).appendTo(row); + $('
').addClass('row_key').text(lk).appendTo(row); $('
').addClass('row_val').text(Math.floor(num)).appendTo(row); $('
').addClass('clear').appendTo(row); var curPrev = null; location.children().each(function(i) { var child = $(this); var cName = child.children('.row_key').text(); - if(cName < k) { + if(cName < lk) { curPrev = child.attr('id'); } });