#47961: dai_select_tech() using A_LAST instead of A_ARRAY_SIZE for array length Open Date: 2023-04-28 00:11 Last Update: 2023-04-28 00:11 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/47961 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47961 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-04-28 00:11 Updated by: cazfi * New Ticket "dai_select_tech() using A_LAST instead of A_ARRAY_SIZE for array length" created --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: (None) Component: AI Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: dai_select_tech(): int values[MAX(A_LAST, A_UNSET + 1)]; int goal_values[MAX(A_LAST, A_UNSET + 1)]; A_ARRAY_SIZE should be used instead of A_LAST in places like this. There's no hard bug at the moment, as 'A_UNSET + 1' is the bigger value anyway. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/47961 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47961