Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] (PR#7173) Customized ruleset causes assert through ai/advm
Home

[Freeciv-Dev] (PR#7173) Customized ruleset causes assert through ai/advm

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7173) Customized ruleset causes assert through ai/advmilitary.c
From: "Guest" <rt-guest@xxxxxxxxxxx>
Date: Mon, 29 Dec 2003 16:28:19 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7173 >


If a military unit w/ zero attack strength happends to be the
first military unit in the ruleset, ai_choose_attacker will pass
bad data to get_unit_type in unittype.c.

The reason for it being a military unit is the unhappyness is
in intended for this unit type.

I have created a patch, but you may have trouble applying it.
The code appears to work. Warning: there may be other ways of
triggering this bug.

Attachment: advmilitary.patch
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7173) Customized ruleset causes assert through ai/advmilitary.c, Guest <=