]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/buffs/buffs.qc
Allow changing other/toucher from item and buff touch mutator hooks
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / buffs / buffs.qc
index e2cb8b3181d3e8783939f46bd99e2b7f6169b653..b89871c8423bf27ad64caaa62953ea08340e7db4 100644 (file)
@@ -244,6 +244,7 @@ void buff_Touch(entity this)
 
        if(MUTATOR_CALLHOOK(BuffTouch, this, other))
                return;
+       other = M_ARGV(1, entity);
 
        if(!IS_PLAYER(other))
                return; // incase mutator changed other