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

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

<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).

-mike





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#15408) ai_select_tech can return A_UNSET in choice, Mike Kaufman <=