This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: bug: RUN: xform_unit_view weirdness with
- From: "Steven S. Dick" <ssd at nevets dot oau dot org>
- To: xconq7 at sources dot redhat dot com
- Date: Sat, 27 Jul 2002 13:34:15 -0400
- Subject: Re: bug: RUN: xform_unit_view weirdness with
- References: <m17YQOA-000pjXC@nevets.oau.org>
On Sat, Jul 27, 2002 at 08:09:38AM -0400, Steven S. Dick wrote:
> However, this last save dies on recovery. It segfaults here:
> #0 0x811c662 in repair_if_damaged (unit=0x81d76e0) at plan.c:1760
>
> if (u_hp_recovery(u) <= 0
> && (any_auto_repair ? !will_be_auto_repaired[u] : TRUE))
>
> u = 3
> any_auto_repair = -1
> will_be_auto_repaired[3] = 0x0
Sorry, mistranscribed that.
will_be_auto_repaired = 0x0
so will_be_auto_repaired[u] would be a null pointer dereference.
Also, the warning message "xform_unit_view weirdness with"
comes from line 727 of ui.c; once passing the warning, the display
appears totally disabled, and refreshing does not restore it.
Steve