Yet more origin-hiding.
[super-star-trek.git] / ai.c
diff --git a/ai.c b/ai.c
index 33e4873f52b10a2ec83ced9e0280389980108988..fd9cf8ceecedcc77db509c839758e6a6208b5128 100644 (file)
--- a/ai.c
+++ b/ai.c
@@ -185,10 +185,10 @@ static void movebaddy(int comx, int comy, int loccom, int ienm)
     nextx = comx;
     nexty = comy;
     /* main move loop */
-    for (ll = 1; ll <= nsteps; ll++) {
+    for (ll = 0; ll < nsteps; ll++) {
 #ifdef DEBUG
        if (idebug) {
-           prout("%d", ll);
+           prout("%d", ll+1);
        }
 #endif
        /* Check if preferred position available */