]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix crash when bumble die without having fired its healgun
authorJakob MG <jakob_mg@hotmail.com>
Tue, 21 Aug 2012 23:34:18 +0000 (01:34 +0200)
committerJakob MG <jakob_mg@hotmail.com>
Tue, 21 Aug 2012 23:34:18 +0000 (01:34 +0200)
qcsrc/server/vehicles/bumblebee.qc

index fc661625e6620909dc3f12896d8c379786597ade..0f984129fe589e406439e67aa846ccd36df14318 100644 (file)
@@ -772,7 +772,8 @@ void bumb_die()
        entity oldself = self;
        
        // Hide beam
-       self.gun3.enemy.effects |= EF_NODRAW;
+       if(self.gun3.enemy || !wasfreed(self.gun3.enemy))
+               self.gun3.enemy.effects |= EF_NODRAW;
        
        if(self.gunner1)
        {