Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2003:
[Freeciv-Dev] (PR#4259) Re: Re: (PR#4338) cm4 sanitycheck
Home

[Freeciv-Dev] (PR#4259) Re: Re: (PR#4338) cm4 sanitycheck

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx, rf13@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#4259) Re: Re: (PR#4338) cm4 sanitycheck
From: "ChrisK@xxxxxxxx" <ChrisK@xxxxxxxx>
Date: Sun, 1 Jun 2003 14:19:13 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, Jun 01, 2003 at 04:04:34AM -0700, Per I. Mathisen wrote:
> On Sun, 1 Jun 2003, ChrisK@xxxxxxxx wrote:
> > Problem is, when a city is conquered, the units are wiped, but not the units
> > transported by them.
> ...
> > Problem seems to be in transfer_city(), but a fix is beyond my capabilities.
> 
> I'm afraid this is my fault. I cleaned up some very bad code which some
> other very bad code relied on working in a not specified way. I'm working
> on a general cleanup of all this code, but I am waiting for Vasco's safe
> list node deletion patch since that will make everything cleaner.
> 
> Try this in the meantime:
> 
> Index: server/citytools.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/server/citytools.c,v
> retrieving revision 1.218
> diff -u -r1.218 citytools.c
> --- server/citytools.c  6 May 2003 05:06:07 -0000       1.218
> +++ server/citytools.c  1 Jun 2003 10:42:26 -0000
> @@ -672,7 +672,7 @@
>         no cargo deletion => no trouble with "units" list.
>         In cases where the cargo can be left without transport the calling
>         function should take that into account. */
> -    wipe_unit_spec_safe(vunit, NULL, FALSE);
> +    wipe_unit_spec_safe(vunit, &myiter, TRUE);
>    } unit_list_iterate_end;
>  }
> 

This gives another assert, when moving in the city:

civserver: unittype.c:86: get_unit_type: Zusicherung »id >= 0 && id < 200 &&
id < game.num_unit_types« nicht erfüllt.
Abgebrochen (core dumped)

Christian

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.



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