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

On 4/10/07, Eric McDonald <[EMAIL PROTECTED]> wrote:
> Hi,
>    Attached to this message is a patch to fix the issue reported in
> PR#39330. Basically, the problem seems to be that cities can see unknown
> terrain, and this is considered acceptable and normal. But, in at least
> one place in the code that possibility is overlooked. In a player's view
> of a tile, the terrain ptr may be NULL (indicating it is unknown).
> Attempts to reference a member, such as 'type', of such a NULL ptr
> obviously results in a segfault.

Good catch but the bug is deeper.  We do NEED to know the terrain type
here since the tile is being sent as TILE_KNOWN_FOGGED.  Can you find
a way to reproduce the problem and figure out why a "known" tile has
unknown terrain type?  That should not be possible.

P.S. Send future reports to the bug tracker.


Freeciv-dev mailing list

Reply via email to