mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 23:30:41 +09:00
Merge pull request #283 from clusterio/TheAIBot-patch-1
Fix overflow check in subspace storage
This commit is contained in:
1 file changed
+2
-2
@@ -77,8 +77,8 @@ class InstancePlugin extends plugin.BaseInstancePlugin {
|
|||||||
// XXX this should be done on the lua side
|
// XXX this should be done on the lua side
|
||||||
// Ensure counts don't overflow
|
// Ensure counts don't overflow
|
||||||
for (let item of items) {
|
for (let item of items) {
|
||||||
if (item[1] > 0x7ffffff) {
|
if (item[1] > 0x7fffffff) {
|
||||||
item[1] = 0x7ffffff;
|
item[1] = 0x7fffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user