bug: RUN: xform_unit_view weirdness with
Steven S. Dick
ssd@nevets.oau.org
Sat Jul 27 13:55:00 GMT 2002
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
More information about the Xconq7
mailing list