Skip to content

Commit

Permalink
hotfix: a bug in Game.market.getAllOrders
Browse files Browse the repository at this point in the history
  • Loading branch information
artch committed Sep 29, 2017
1 parent b400f40 commit f67f8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/market.js
Expand Up @@ -18,7 +18,7 @@ exports.make = function(runtimeData, intents, register) {
if(resourceType != 'all' && !_.contains(C.RESOURCES_ALL, resourceType) && resourceType != C.SUBSCRIPTION_TOKEN) {
return {};
}
cachedOrders[resourceType] = JSON.parse(JSON.stringify(runtimeData.market.orders[resourceType] || '{}'));
cachedOrders[resourceType] = JSON.parse(JSON.stringify(runtimeData.market.orders[resourceType]) || '{}');
for(var i in cachedOrders[resourceType]) {
cachedOrders[resourceType][i].price /= 1000;
}
Expand Down

0 comments on commit f67f8ff

Please sign in to comment.