Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] Re: (PR#13188) cvs error
Home

[Freeciv-Dev] Re: (PR#13188) cvs error

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#13188) cvs error
From: "Marcel Edward Verhagen" <marcel@xxxxxxxxxxxxxx>
Date: Sun, 5 Jun 2005 07:00:16 -0700
Reply-to: bugs@xxxxxxxxxxx

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

Op zondag 29 mei 2005 08:58, schreef Marcel Edward Verhagen:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=13188 >
>
> After clicking on the governor button freeciv cvs stops with the following
> message:
>
> civclient: cma_core.c:153: get_current_as_result: Bewering `worker +
> specialist == pcity->size' mislukt.
> Geannuleerd

This error only occurs when playing with modified rulesets.

I have created a little path wich adds  an if() to prevent the assert() when 
worker+specialist == pcity->size is false

Marcel

--- /home/marcel/freeciv/client/agents/cma_core.c       2005-06-05 
15:46:38.000000000 -0400
+++ /home/marcel/freeciv/client/agents/cma_core_original.c      2005-06-05 
15:51:10.000000000 -0400
@@ -150,7 +150,6 @@
     specialist += pcity->specialists[sp];
   } specialist_type_iterate_end;
   
-  if (worker + specialist == pcity->size)
       assert(worker + specialist == pcity->size);
 
   result->found_a_valid = TRUE;

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