From 0c080c65c820f0ffbcefe3bae6b0fd14317123b3 Mon Sep 17 00:00:00 2001 From: "Timothy C. McGrath" Date: Sun, 2 Jun 2002 05:23:47 +0000 Subject: [PATCH] Fixed ownership checking of doors, caused interesting crashes due to another bug which I had caused. (Gee, I should screw things up more often! ... er, no.) Tim McGrath (Misty) --- doors.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doors.qc b/doors.qc index b2c5cad..29b3230 100644 --- a/doors.qc +++ b/doors.qc @@ -152,8 +152,10 @@ void() door_use = local entity oself; self.message = ""; // door message are for touch only - self.owner.message = ""; - self.enemy.message = ""; + if (self.owner) + self.owner.message = ""; + if (self.owner) + self.enemy.message = ""; oself = self; self = self.owner; door_fire ();