aboutsummaryrefslogtreecommitdiff
path: root/solo.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2014-11-26 19:27:35 +0000
committerSimon Tatham <anakin@pobox.com>2014-11-26 19:27:35 +0000
commitd7a4c52937ddacc5c81049f0bfdf916df757277c (patch)
tree6f5aad6ee1e0af991bbf9ebf767a3e8b59134a3c /solo.c
parent4a8edc65bbe906093787645b98122c7750ae83e8 (diff)
downloadpuzzles-d7a4c52937ddacc5c81049f0bfdf916df757277c.zip
puzzles-d7a4c52937ddacc5c81049f0bfdf916df757277c.tar.gz
puzzles-d7a4c52937ddacc5c81049f0bfdf916df757277c.tar.bz2
puzzles-d7a4c52937ddacc5c81049f0bfdf916df757277c.tar.xz
Fix a decoding bug in Solo block-structure descriptions.
Due to a copy-and-paste error, I was accidentally treating 'y' as the special-case character which puts no 1 bit after the run of 0s, which should have been 'z'. Game id 9jk#12345-5994 failed an assertion as a result (because it generates a y which was accidentally treated as special).
Diffstat (limited to 'solo.c')
-rw-r--r--solo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/solo.c b/solo.c
index e8752ad..c7ed61b 100644
--- a/solo.c
+++ b/solo.c
@@ -3840,7 +3840,7 @@ static char *spec_to_dsf(const char **pdesc, int **pdsf, int cr, int area)
}
desc++;
- adv = (c != 25); /* 'z' is a special case */
+ adv = (c != 26); /* 'z' is a special case */
while (c-- > 0) {
int p0, p1;