Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ucla-cs!sdcrdcf!trwrb!aero!aero2!kelem From: kelem@aero2.ARPA (Steve Kelem ATW) Newsgroups: rec.games.hack,net.sources.games Subject: Fix for hack 1.0.3 engrave bug Message-ID: <98@aero2.ARPA> Date: Wed, 21-Jan-87 13:23:46 EST Article-I.D.: aero2.98 Posted: Wed Jan 21 13:23:46 1987 Date-Received: Thu, 22-Jan-87 20:33:03 EST Reply-To: kelem@aero2.UUCP (Steve Kelem, ATW) Distribution: na Organization: The Aerospace Corporation, El Segundo, CA Lines: 11 Xref: mnetor rec.games.hack:154 net.sources.games:953 Problem: Hack 1.0.3 dumps core if you try to "engrave(write)" something on the floor with your finger. This is caused by dereferencing a nil pointer. This is tolerable on a Vax, but not on a Sun. Fix: The following change in the file "engrave.c" will avoid dereferencing a nil pointer. 144c144 < if(otmp->otyp == WAN_FIRE && otmp->spe) { --- > if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) {