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

I tried to reproduce on 2.1.0-rc1 and the gtk client, but no crash.

Do you use another Freeciv version or are there perhaps other factors involved?

 ~Daniel

On 10/21/07, Timothy Brownawell <[EMAIL PROTECTED]> wrote:
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=39785 >
>
> If I put a coinage in the worklist followed by a unit, the server
> segfaults on end-of-turn. It seems that city_build_building switches
> production to whatever comes after the coinage, and then does things
> with it under the assumption that it's still a building.
>
>
> This makes it not crash:
>
> $ svn diff
> Index: server/cityturn.c
> ===================================================================
> --- server/cityturn.c   (revision 13840)
> +++ server/cityturn.c   (working copy)
> @@ -1140,6 +1140,7 @@
>      pcity->before_change_shields = 0;
>      pcity->shield_stock = 0;
>      choose_build_target(pplayer, pcity);
> +    return TRUE;
>    }
>    upgrade_building_prod(pcity);
>
>
>
>
>
> _______________________________________________
> Freeciv-dev mailing list
> Freeciv-dev@gna.org
> https://mail.gna.org/listinfo/freeciv-dev
>



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to