chiark / gitweb /
Fix error highlighting after table rearrangement.
[sgt-puzzles.git] / unfinished / group.c
index 037547e2260b06332312f0455aa2ae0c235704ba..4c490305278572b41d0e4bf8d790a0f67cb46a6a 100644 (file)
@@ -1710,7 +1710,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate,
                  flashtime >= FLASH_TIME*2/3))
                 tile |= DF_HIGHLIGHT;  /* completion flash */
 
-           error = ds->errtmp[y*w+x];
+           error = ds->errtmp[sy*w+sx];
 
            if (ds->tiles[y*w+x] != tile ||
                ds->pencil[y*w+x] != pencil ||