Complete.Org: Mailing Lists: Archives: freeciv-ai: December 2005:
[freeciv-ai] Re: (PR#14863) compile fix for aiparatrooper.c
Home

[freeciv-ai] Re: (PR#14863) compile fix for aiparatrooper.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [freeciv-ai] Re: (PR#14863) compile fix for aiparatrooper.c
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Dec 2005 22:50:09 -0800
Reply-to: bugs@xxxxxxxxxxx

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

I should have know better. Here's a another compile fix, in the same vein.

-mike

Index: ai/aiparatrooper.c
===================================================================
--- ai/aiparatrooper.c  (revision 11349)
+++ ai/aiparatrooper.c  (working copy)
@@ -320,6 +320,8 @@
   }
 
   unit_type_iterate(u_type) {
+    struct unit *virtual_unit;
+
     if (!unit_type_flag(u_type, F_PARATROOPERS)) {
       continue;
     }
@@ -343,9 +345,8 @@
     }
 
     /* it's worth building that unit? */
-    struct unit *virtual_unit = create_unit_virtual(pplayer, pcity, u_type,
-                                                   do_make_unit_veteran
-                                                   (pcity, u_type));
+    virtual_unit = create_unit_virtual(pplayer, pcity, u_type,
+                                       do_make_unit_veteran(pcity, u_type));
     profit = calculate_want_for_paratrooper(virtual_unit, pcity->tile);
     destroy_unit_virtual(virtual_unit);
 

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Re: (PR#14863) compile fix for aiparatrooper.c, Mike Kaufman <=