From fcfad08260e3d65656816d4badbc1a57daddfa04 Mon Sep 17 00:00:00 2001 From: TheAIBot Date: Wed, 8 Apr 2020 14:59:53 +0200 Subject: [PATCH] fix overflow check in subspace storage Previous and new value: 0x7ffffff -- old 134.217.727 0x7fffffff -- new 2.147.483.647 --- plugins/subspace_storage/instance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/subspace_storage/instance.js b/plugins/subspace_storage/instance.js index b0d40ab1..7be30d1b 100644 --- a/plugins/subspace_storage/instance.js +++ b/plugins/subspace_storage/instance.js @@ -77,8 +77,8 @@ class InstancePlugin extends plugin.BaseInstancePlugin { // XXX this should be done on the lua side // Ensure counts don't overflow for (let item of items) { - if (item[1] > 0x7ffffff) { - item[1] = 0x7ffffff; + if (item[1] > 0x7fffffff) { + item[1] = 0x7fffffff; } }