From d0c7a5a3eda4dcb94104cf54c0029ea1ea3d667f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 21 May 2008 21:36:23 -0400 Subject: [PATCH] Our algorithm no longer causes exceptions, but it's wrong * Source/AppController.m (-[findWords:]) --- Source/AppController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/AppController.m b/Source/AppController.m index 35c0850..bf8b275 100644 --- a/Source/AppController.m +++ b/Source/AppController.m @@ -70,7 +70,7 @@ } BOOL add = YES; - for (int j = 0, k = numWild; j < length; j++, k++) + for (int j = 0, k = numWild; k < length; j++, k++) { if ([[word alphagram] characterAtIndex:j] != [tiles characterAtIndex:k]) { @@ -89,7 +89,7 @@ if (add) { - [wordlist addObject:[word word]]; + [wordlist addObject:word]; } add = YES; } -- 2.43.5