Fixed a minor bug (matching starlet locations).
[wumpus.git] / superhack.c
index f9879fd8ee10b7afc6af792d4ae53a573b3a3bb1..82d480907a6238a75d50027700f511b8520af4c2 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <stdio.h>
 #include <ctype.h>
+#include <stdlib.h>
 
 static int path[5];
 static int j, k, scratchloc, pies;
@@ -332,7 +333,7 @@ goodmove:
        PM("Yow! You interrupted the superhack.");
        move_superhack();
     }
-    else if (scratchloc == loc[STARLET1] || scratchloc == loc[STARLET1])
+    else if (scratchloc == loc[STARLET1] || scratchloc == loc[STARLET2])
     {
        PM("You begin to babble at an unimpressed starlet.  You lose!");
        finished = LOSE;