Fix sorting on odd sized lists

This commit is contained in:
Andrew Grant committed 2021-08-11 11:35:42 +08:00
1 parent 90371b4673
commit 996979182a
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@
}
function invert_networks() {
for (let i = 0; i * 2 != Networks.length; i++)
for (let i = 0; Networks.length > i * 2; i++)
swap_networks(i, Networks.length-i-1);
}