Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2006:
[Freeciv-Dev] Re: (PR#15408) ai_select_tech can return A_UNSET in choice
Home

[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]
Subject: [Freeciv-Dev] Re: (PR#15408) ai_select_tech can return A_UNSET in choice
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Feb 2006 20:03:37 -0800
Reply-to: bugs@xxxxxxxxxxx

<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





[Prev in Thread] Current Thread [Next in Thread]