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

 $subject

 This is an issue with Mongols scenario.


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/advmilitary.c freeciv/ai/advmilitary.c
--- freeciv/ai/advmilitary.c	2007-03-13 17:43:47.000000000 +0200
+++ freeciv/ai/advmilitary.c	2007-03-18 15:53:49.000000000 +0200
@@ -1108,7 +1108,7 @@
 
     def_type = ai_choose_defender_versus(acity, myunit->type);
     def_owner = acity->owner;
-    if (move_time > 1) {
+    if (move_time > 1 && def_type) {
       def_vet = do_make_unit_veteran(acity, def_type);
       vuln = unittype_def_rating_sq(myunit->type, def_type, acity->owner,
                                     ptile, FALSE, def_vet);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to