diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index 65a26d87e6ccca896cff1c9e7373e953344c83df..e413e66fdf3d974d5ddf00fde6f2a94133e3cb16 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -851,7 +851,6 @@ bitmap_draw_vmem(int sx, int sy, int ex, int ey, struct vmem_cell *fill)
 				bs.pixeloffset -= bs.maxpix;
 		}
 		screenb.update_pixels = 1;
-		int coff = vmem_cell_offset(vm, 0, 0);
 		int foff = 0;
 		for (size_t vy = 0; vy < vheight; vy++) {
 			int coff = vmem_cell_offset(vm, sx - 1, sy - 1 + vy);