[Freeciv-Dev] Re: (PR#4522) map.c error
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
It should be initialized to -1,-1 which is a marker for bad coordinates, not
0,0 which may be valid in some topologies and not others.
Cheers,
RossW
=====
ue80@xxxxxxxxxxxxxxxxxxxxx wrote:
> Hi,
>
> i had some problems with starting a game:
>
> #3 0x40099ae9 in __assert_fail () from /lib/libc.so.6
> #4 0x0809c3e9 in map_clear_special (x=137710776, y=137710776,
> spe=S_NO_SPECIAL) at map.c:1262
> #5 0x08069b2a in init_new_game () at mathinline.h:440
>
> so i initialized that variables.
> Now its working
>
> Thomas
>
>
> ------------------------------------------------------------------------
>
> Index: server/gamehand.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/server/gamehand.c,v
> retrieving revision 1.126
> diff -u -r1.126 gamehand.c
> --- server/gamehand.c 2003/04/08 20:36:10 1.126
> +++ server/gamehand.c 2003/07/14 17:30:38
> @@ -39,7 +39,7 @@
> {
> static const char chars[] =
> "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
> - int i, j, x, y;
> + int i, j, x=0, y=0;
> int dx, dy;
> Unit_Type_id utype;
> int start_pos[MAX_NUM_PLAYERS]; /* indices into map.start_positions[] */
- [Freeciv-Dev] (PR#4522) map.c error, ue80@xxxxxxxxxxxxxxxxxxxxx, 2003/07/14
- Message not available
- [Freeciv-Dev] Re: (PR#4522) map.c error,
rwetmore@xxxxxxxxxxxx <=
- Message not available
|
|