Bump zlib

This commit is contained in:
Cmdr McDonald
2017-04-26 07:58:05 -04:00
parent 82725e1c5a
commit 4accb901af
2 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@
}, },
"dependencies": { "dependencies": {
"babel-polyfill": "*", "babel-polyfill": "*",
"browserify-zlib": "ipfs/browserify-zlib", "browserify-zlib-next": "^1.0.1",
"classnames": "^2.2.5", "classnames": "^2.2.5",
"coriolis-data": "EDCD/coriolis-data", "coriolis-data": "EDCD/coriolis-data",
"d3": "4.8.0", "d3": "4.8.0",

View File

@@ -1486,8 +1486,8 @@ export default class Ship {
let bufsize = 0; let bufsize = 0;
for (let i = 0; i < slots.length; i++) { for (let i = 0; i < slots.length; i++) {
if (slots[i].length > 0 || (blueprints[i] && blueprints[i].id)) { if (slots[i].length > 0 || (blueprints[i] && blueprints[i].id)) {
// Length is 1 for the slot ID, 5 for each modification, and 1 for the end marker // Length is 1 for the slot ID, 5 for each modification, 1 for the end marker of the modifications and 1 for the end marker of the slot
bufsize = bufsize + 1 + (5 * slots[i].length) + 1; bufsize = bufsize + 1 + (5 * slots[i].length) + 1 + 1;
if (blueprints[i] && blueprints[i].id) { if (blueprints[i] && blueprints[i].id) {
// Additional 10 for the blueprint and grade // Additional 10 for the blueprint and grade