[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]
<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 <=
|
|