From 3dcd5e15bf04c7ded620ea160115b1616986e426 Mon Sep 17 00:00:00 2001 From: deilann Date: Sun, 11 May 2014 09:30:43 -0700 Subject: [PATCH] scroll quickfix --- script/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/index.coffee b/script/index.coffee index 6a64fc2c99..7b241a2681 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -604,7 +604,7 @@ api.wrap = (user, main=true) -> item = content[type][key] return cb?({code:404,message:":key not found for Content.#{type}"},req) unless item return cb?({code:401, message: i18n.t('notEnoughGems', req.language)}) if user.balance < (item.value / 4) - user.items[type][key] = 0 unless user.items[type][key] + user.items[type][key] = 0 unless user.items[type][key] > 0 user.items[type][key]++ user.balance -= (item.value / 4) cb? null, _.pick(user,$w 'items balance')