[Freeciv-Dev] Re: (PR#2636) fix for grave bug in aiair.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 23 Dec 2002, Per I. Mathisen via RT wrote:
> @@ -338,7 +340,9 @@
> * TODO: separate attacking into a function, check for the best
> * tile to attack from */
> set_unit_activity(punit, ACTIVITY_GOTO);
> - (void) do_unit_goto(punit, GOTO_MOVE_ANY, FALSE);
> + if (!ai_unit_goto(punit, GOTO_MOVE_ANY, FALSE)) {
> + return; /* died */
> + }
> /* goto would be aborted: "Aborting GOTO for AI attack procedures"
> * now actually need to attack */
Mhhh. How come a unit can die on goto?
> Definitely S1_14 material, too.
Not really ;)
aiair.c is not in 1_14
G.
- [Freeciv-Dev] Re: (PR#2636) fix for grave bug in aiair.c,
Gregory Berkolaiko via RT <=
|
|