Fix something I wrote badly in the code
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 20:29:59 +0000 (22:29 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 20:29:59 +0000 (22:29 +0200)
data/qcsrc/server/vore.qc

index ea485cb..9706b5f 100644 (file)
@@ -277,8 +277,8 @@ void Vore_PreyRelease(entity e)
                Vore_DeadPrey_Configure(e);\r
 \r
                // if fulldigest is enabled and the predator disconnected, detach the dead prey\r
-               if(self.fakepredator.classname != "player")\r
-                       Vore_DeadPrey_Detach(self);\r
+               if(e.fakepredator.classname != "player")\r
+                       Vore_DeadPrey_Detach(e);\r
        }\r
        else\r
                Vore_Regurgitate(e);\r