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

 Attached patches committed.


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/advmilitary.c freeciv/ai/advmilitary.c
--- freeciv/ai/advmilitary.c	2007-08-13 20:51:05.000000000 +0300
+++ freeciv/ai/advmilitary.c	2007-08-14 05:31:24.000000000 +0300
@@ -1225,8 +1225,8 @@
     copy_if_better_choice(&best_choice, choice);
     CITY_LOG(LOG_DEBUG, pcity, "ksw: %s has chosen attacker, %s, want=%d",
 	     pcity->name,
-	     utype_rule_name(choice->value.utype),
-	     choice->want);
+	     utype_rule_name(best_choice.value.utype),
+	     best_choice.want);
 
     if (go_by_boat && !ferryboat) { /* need a new ferry */
       /* We might need a new boat even if there are boats free,
diff -Nurd -X.diff_ignore freeciv/ai/advmilitary.c freeciv/ai/advmilitary.c
--- freeciv/ai/advmilitary.c	2007-08-04 02:56:41.000000000 +0300
+++ freeciv/ai/advmilitary.c	2007-08-14 05:38:28.000000000 +0300
@@ -1190,8 +1190,8 @@
     copy_if_better_choice(&best_choice, choice);
     CITY_LOG(LOG_DEBUG, pcity, "ksw: %s has chosen attacker, %s, want=%d",
 	     pcity->name,
-	     utype_rule_name(utype_by_number(choice->choice)),
-	     choice->want);
+	     utype_rule_name(utype_by_number(best_choice.choice)),
+	     best_choice.want);
 
     if (go_by_boat && !ferryboat) { /* need a new ferry */
       /* We might need a new boat even if there are boats free,
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to