Skip to content

Commit

Permalink
Crash fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Mar 28, 2019
1 parent 61f6368 commit bffae90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/io/anuke/mindustry/editor/MapRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public void draw(float tx, float ty, float tw, float th){
IndexedRenderer mesh = chunks[x][y];

if(mesh == null){
chunks[x][y] = new IndexedRenderer(chunksize * chunksize * 2);
mesh = chunks[x][y];
continue;
}

mesh.getTransformMatrix().setToTranslation(tx, ty).scale(tw / (width * tilesize), th / (height * tilesize));
Expand Down

0 comments on commit bffae90

Please sign in to comment.