fix overflow check in subspace storage

Previous and new value:
0x7ffffff -- old 134.217.727
0x7fffffff -- new 2.147.483.647
This commit is contained in:
TheAIBot authored and GitHub committed 2020-04-08 14:59:53 +02:00
1 parent 112cad8a49
commit fcfad08260
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;
}
}