From 99e86a24ba3040f93153b3338afe39695544a33a Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 26 Mar 2015 11:03:43 +1100 Subject: [PATCH] Fix buffs potentially removing the wrong item --- qcsrc/server/mutators/mutator_buffs.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2