]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_new_toys.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_new_toys.qc
index fa7638b515a50a75212ca76c059aeff12cbbf6c8..c80f19f6690118b5771a9e58f8a9168c70fe5f5e 100644 (file)
@@ -168,7 +168,7 @@ MUTATOR_HOOKFUNCTION(nt_SetStartItems)
 }
 
 MUTATOR_HOOKFUNCTION(nt_SetWeaponreplace)
-{
+{SELFPARAM();
        // otherwise, we do replace
        if(self.new_toys)
        {
@@ -188,7 +188,7 @@ MUTATOR_HOOKFUNCTION(nt_SetWeaponreplace)
 }
 
 MUTATOR_HOOKFUNCTION(nt_FilterItem)
-{
+{SELFPARAM();
        if(nt_IsNewToy(self.weapon))
                self.item_pickupsound = W_Sound("weaponpickup_new_toys");
        return 0;