1.2.1 : small fix
This commit is contained in:
@@ -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>" +
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user