]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/porto.qc
Use think accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / porto.qc
index 867dd286c799855c7848834198f4f126ef530018..bef792cc533227edf82e95c705c3afb377aeb88c 100644 (file)
@@ -265,7 +265,7 @@ void W_Porto_Attack(float type)
        setsize(gren, '0 0 0', '0 0 0');
 
        gren.nextthink = time + WEP_CVAR_BOTH(porto, (type <= 0), lifetime);
-       gren.think = W_Porto_Think;
+       setthink(gren, W_Porto_Think);
        settouch(gren, W_Porto_Touch);
 
        if(self.items & ITEM_Strength.m_itemid)