1.2.1 : small fix

This commit is contained in:
Klemek
2018-12-03 00:22:52 +01:00
parent 4467d13da1
commit bbce00b7f2
6 changed files with 4 additions and 5 deletions
@@ -9,7 +9,7 @@ import javax.swing.*;
class MainWindow extends JFrame {
static final String FILE_NAME = "mapping.csv";
private static final String VERSION = "1.2";
private static final String VERSION = "1.2.1";
private static final int DEFAULT_SIZE = 17;
private static final String INFO_TEXT = "" +
"<html>" +
+1 -1
View File
@@ -83,7 +83,7 @@ class Map {
for (int y = 0; y < newSize; y++) {
if (x < this.m.length && y < this.m.length)
tm[x][y] = this.m[x][y];
if (x < this.m2.length && y < this.m2.length)
if (x < this.m2.length && y < this.m2.length && x < tm2.length && y < tm2.length)
tm2[x][y] = this.m2[x][y];
}
this.m = tm;