about summary refs log tree commit diff
path: root/src/game/editor/ed_layer_tiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/editor/ed_layer_tiles.cpp')
-rw-r--r--src/game/editor/ed_layer_tiles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/editor/ed_layer_tiles.cpp b/src/game/editor/ed_layer_tiles.cpp
index d24d67c4..555c26a3 100644
--- a/src/game/editor/ed_layer_tiles.cpp
+++ b/src/game/editor/ed_layer_tiles.cpp
@@ -145,8 +145,8 @@ void LAYER_TILES::brush_flip_x()
 		for(int x = 0; x < width/2; x++)
 		{
 			TILE tmp = tiles[y*width+x];
-			tiles[y*width+x] = tiles[y*width+x+width-1-x];
-			tiles[y*width+x+width-1-x] = tmp;
+			tiles[y*width+x] = tiles[y*width+width-1-x];
+			tiles[y*width+width-1-x] = tmp;
 		}
 
 	for(int y = 0; y < height; y++)