Merge pull request #283 from clusterio/TheAIBot-patch-1

Fix overflow check in subspace storage
This commit is contained in:
Hornwitser authored and GitHub committed 2020-04-08 15:08:32 +02:00
commit 407e3d2aed
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}