Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: (PR#1364) Assertion fails in get_role_unit()
Home

[Freeciv-Dev] Re: (PR#1364) Assertion fails in get_role_unit()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx, pasky@xxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#1364) Assertion fails in get_role_unit()
From: "Gregory Berkolaiko via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 19 Nov 2002 09:32:06 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, 19 Nov 2002, Raimar Falke via RT wrote:

> ai/advdomestic.c:1.84 (from april 2002) contains:
>       unit_type = get_role_unit(F_HELP_WONDER, 0);
> which is buggy.
> 
> The current version however contains:
> 
>   if (num_role_units(F_HELP_WONDER) == 0) {
>     /* No such units available in the ruleset */
>     return;
>   }

Ah, I see.  It was a comment on an existent bug.  I think you should have 
added your comment as a "comment" so it doesn't get broadcast and provoke 
spaced out discussions.

G.





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