shithub: puzzles

Download patch

ref: 540716194dd2ee5917acb25e4deed94a9ee939f2
parent: 48f6bfa474f091c661a281e36b390a52f998f94d
author: Simon Tatham <anakin@pobox.com>
date: Sun Jan 9 06:30:09 EST 2011

Fix error highlighting after table rearrangement.

[originally from svn r9076]

--- a/unfinished/group.c
+++ b/unfinished/group.c
@@ -1710,7 +1710,7 @@
                  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 ||