Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2004:
[Freeciv-Dev] (PR#8934) cm bug with specialist min_city_size values
Home

[Freeciv-Dev] (PR#8934) cm bug with specialist min_city_size values

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8934) cm bug with specialist min_city_size values
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 8 Jun 2004 21:34:47 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8934 >

If you decrease the city min_size value for scientist but not taxmen, 
you get a crash.  The cause is obvious; this patch fixes it.

jason

? common/aicore/output
Index: common/aicore/cm.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/aicore/cm.c,v
retrieving revision 1.23
diff -u -r1.23 cm.c
--- common/aicore/cm.c  2 Jun 2004 22:54:14 -0000       1.23
+++ common/aicore/cm.c  9 Jun 2004 04:33:20 -0000
@@ -1268,7 +1268,7 @@
   for (scientists = 0;
        scientists <= base_combination->max_scientists; scientists++) {
     for (taxmen = 0;
-        taxmen <= base_combination->max_scientists - scientists; taxmen++) {
+        taxmen <= base_combination->max_taxmen - scientists; taxmen++) {
       int major_fitness, minor_fitness;
       struct cm_result result;
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#8934) cm bug with specialist min_city_size values, Jason Short <=