[Freeciv-Dev] Re: (PR#15408) ai_select_tech can return A_UNSET in choice
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15408 >
On Sat, Feb 04, 2006 at 04:34:00PM -0800, Jason Short wrote:
>
> Mike Kaufman wrote:
> >
> > this will cause an assert in get_invention. This will happen if all the
> > ai.tech_wants happen to be negative. There needs to be a check in
> > ai_select_tech for this eventuality and fill choice with a safe value (like
> > the current choice).
It seems I was wrong, this bug occurs because the player has researched all
techs, and is on Future Tech 1. At that point, want equals 0 for all techs
so values[] are all <= 0.
-mike
|
|