Fix: SE019 Problem: Slash'EM can crash with a bad memory reference when forcing a lock with a weapon. Compatible with: Slash'EM 0.0.5E2 through 0.0.5E6F1 Author: Warren Cheung, wac@intergate.bc.ca J. Ali Harlow, ali@avrc.city.ac.uk Date: 2 Nov 1999 *** src/lock.c.orig Mon Nov 1 12:47:58 1999 --- src/lock.c Tue Nov 2 12:01:32 1999 *************** *** 599,605 **** You("start bashing it with your %s.", xname(uwep)); xlock.box = otmp; xlock.chance = (is_lightsaber(uwep) ? 75 : ! objects[otmp->otyp].oc_wldam * 2); xlock.picktyp = picktyp; xlock.usedtime = 0; break; --- 599,605 ---- You("start bashing it with your %s.", xname(uwep)); xlock.box = otmp; xlock.chance = (is_lightsaber(uwep) ? 75 : ! objects[uwep->otyp].oc_wldam * 2); xlock.picktyp = picktyp; xlock.usedtime = 0; break; *************** *** 655,661 **** You("start bashing it with your %s.", xname(uwep)); xlock.box = otmp; xlock.chance = (is_lightsaber(uwep) ? 38 : ! objects[otmp->otyp].oc_wldam); xlock.picktyp = picktyp; xlock.usedtime = 0; xlock.door = door; --- 655,661 ---- You("start bashing it with your %s.", xname(uwep)); xlock.box = otmp; xlock.chance = (is_lightsaber(uwep) ? 38 : ! objects[uwep->otyp].oc_wldam); xlock.picktyp = picktyp; xlock.usedtime = 0; xlock.door = door;