]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_weaponsystem.qc
Fix my last fix
[voretournament/voretournament.git] / data / qcsrc / server / cl_weaponsystem.qc
index 30f74cf5e907ec06eb3ed9abdb1224135ebf4fb3..144ade6ecc2159ff99b96f90ade6c42e56cdb2a8 100644 (file)
@@ -256,7 +256,7 @@ float CL_ExteriorWeaponentity_CustomizeEntityForClient()
        if(self.owner.weaponname == "" || self.owner.deadflag != DEAD_NO)\r
                return TRUE;\r
 \r
-       if(other.spectatee_status == num_for_edict(other.enemy))\r
+       if(other.spectatee_status && other.spectatee_status == num_for_edict(other.enemy))\r
                other = other.enemy; // also do this for the player we are spectating\r
 \r
        if not(other.cvar_chase_active || other.classname == "observer") // the observer check prevents a bug\r