From: Mario Date: Thu, 26 Mar 2015 00:03:43 +0000 (+1100) Subject: Fix buffs potentially removing the wrong item X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=99e86a24ba3040f93153b3338afe39695544a33a;p=xonotic%2Fxonotic-data.pk3dir.git Fix buffs potentially removing the wrong item --- diff --git a/qcsrc/server/mutators/mutator_buffs.qc b/qcsrc/server/mutators/mutator_buffs.qc index d7af10a86..09cb1a0a1 100644 --- a/qcsrc/server/mutators/mutator_buffs.qc +++ b/qcsrc/server/mutators/mutator_buffs.qc @@ -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;