diff --git a/source/shared_lib/sources/map/map_preview.cpp b/source/shared_lib/sources/map/map_preview.cpp index 409af5c9..bb2c7851 100644 --- a/source/shared_lib/sources/map/map_preview.cpp +++ b/source/shared_lib/sources/map/map_preview.cpp @@ -403,7 +403,7 @@ void MapPreview::copyXY(int x, int y, int sx, int sy) { // swap a cell in the map with another, used by rotate etc void MapPreview::swapXY(int x, int y, int sx, int sy) { - if(inside(x, y) and inside(sx, sy)){ + if(inside(x, y) && inside(sx, sy)){ float tmpHeight= cells[x][y].height; cells[x][y].height= cells[sx][sy].height; cells[sx][sy].height= tmpHeight;