Fix out of memory crash with map generation
This commit is contained in:
parent
713b86d2fb
commit
4526ae6426
1 changed files with 4 additions and 2 deletions
|
@ -124,9 +124,11 @@ public class TransportRoute extends MapObject {
|
|||
if(reverseSecond) {
|
||||
second.reverseNodes();
|
||||
}
|
||||
if (first != second && (first.getId() < 0 || first.getId() != second.getId())) {
|
||||
for (int i = 1; i < second.getNodes().size(); i++) {
|
||||
first.addNode(second.getNodes().get(i));
|
||||
}
|
||||
}
|
||||
changed = true;
|
||||
} else {
|
||||
k++;
|
||||
|
|
Loading…
Reference in a new issue