chiark / gitweb /
Fix error highlighting after table rearrangement.
authorSimon Tatham <anakin@pobox.com>
Sun, 9 Jan 2011 11:30:09 +0000 (11:30 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 9 Jan 2011 11:30:09 +0000 (11:30 +0000)
[originally from svn r9076]

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 ||