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]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#15408) ai_select_tech can return A_UNSET in choice
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Feb 2006 16:34:00 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15408 >

Mike Kaufman wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=15408 >
> 
> 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).

THe current choice can probably be unset...





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