Jelajahi Sumber

* Fixed cmd_botcmds again

svn: 1104
Bryan Drewery 22 tahun lalu
induk
melakukan
00b98739ba
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -1588,7 +1588,7 @@ static void cmd_botcmd(struct userrec *u, int idx, char *par)
         tbots++;
         tbots++;
     }
     }
     if (tbots)
     if (tbots)
-      rleaf = 1 + randint(tbots + 1);		/* 1 <--> tbots */
+      rleaf = 1 + randint(tbots);		/* 1 <--> tbots */
   }
   }
   
   
   for (tbot = tandbot; tbot; tbot = tbot->next) {
   for (tbot = tandbot; tbot; tbot = tbot->next) {