Fix spurious setup command at startup
[fairymax.git] / fairymax.c
index 8b4ddb7..f20bb1f 100644 (file)
@@ -344,6 +344,9 @@ int PrintResult(int s)
         }\r
 \r
 \r
+\r
+\r
+\r
         K=I;\r
         cnt = D(s,-I,I,Q,O,LL|4*S,3);\r
 #ifdef SHATRANJ\r
@@ -467,7 +470,7 @@ void PrintOptions()
                                          \r
 void LoadGame(char *name)\r
 {\r
-        int i, j, ptc, count=0; char c, buf[80], pieceToChar[80], parent[80];\r
+        int i, j, ptc=0, count=0; char c, buf[80], pieceToChar[80], parent[80];\r
         static int currentVariant;\r
         FILE *f;\r
 \r
@@ -907,4 +910,5 @@ int main(int argc, char **argv)
 \r
                }\r
        }\r
+       return 0;\r
 }\r