Fix error highlighting after table rearrangement.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 9 Jan 2011 11:30:09 +0000 (11:30 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 9 Jan 2011 11:30:09 +0000 (11:30 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9076 cda61777-01e9-0310-a592-d414129be87e

unfinished/group.c

index 037547e..4c49030 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 ||