<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40354 >

2008/7/2 Marko Lindqvist:
>
> Current S2_2, trying to /take one of the players from game with 30 + 2 
> players:
>
> stdinhand.c:2977: take_command: Assertion `game.info.nplayers < 30 + 2' 
> failed.

 Fix to this particular problem attached.

 Test save has more problems, probably also related to the fact that
all player slots are in use.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/stdinhand.c freeciv/server/stdinhand.c
--- freeciv/server/stdinhand.c  2008-06-26 21:52:08.000000000 +0300
+++ freeciv/server/stdinhand.c  2008-07-19 21:21:05.000000000 +0300
@@ -2966,7 +2966,7 @@
               pconn->username);
     goto end;
   }
-  assert(game.info.nplayers < MAX_NUM_PLAYERS + MAX_NUM_BARBARIANS);
+  assert(game.info.nplayers <= MAX_NUM_PLAYERS + MAX_NUM_BARBARIANS);
 
   res = TRUE;
   if (check) {
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to