Explorar o código

fixed a bug where dud removal could remove the correct word

Josh Bicking %!s(int64=7) %!d(string=hai) anos
pai
achega
39c9b6f7d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pass.c

+ 1 - 1
pass.c

@@ -483,7 +483,7 @@ void pass(){
                     starty = tempy;
                     
                     charCounter = 0;
-                    while(bigString[getCharLoc(tempy,tempx)+1]>64 && bigString[getCharLoc(tempy,tempx)+1]<91){
+                    while(bigString[getCharLoc(tempy,tempx)]>64 && bigString[getCharLoc(tempy,tempx)]<91){
                         currentChar[charCounter] = bigString[getCharLoc(tempy,tempx)];
                         charCounter++;
                         tempx++;