]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix buffs potentially removing the wrong item
authorMario <zacjardine@y7mail.com>
Thu, 26 Mar 2015 00:03:43 +0000 (11:03 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 26 Mar 2015 00:03:43 +0000 (11:03 +1100)
qcsrc/server/mutators/mutator_buffs.qc

index d7af10a8668fac765ce3366cf9abaf3e1554d74e..09cb1a0a123cd462cdac06cabde84a447c9869c8 100644 (file)
@@ -318,9 +318,9 @@ float buff_Customize()
 
 void buff_Init(entity ent)
 {
-       if(!cvar("g_buffs")) { remove(self); return; }
+       if(!cvar("g_buffs")) { remove(ent); return; }
 
-       if(!teamplay && self.team) { self.team = 0; }
+       if(!teamplay && ent.team) { ent.team = 0; }
 
        entity oldself = self;
        self = ent;