]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_quake3.qc
Use think accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_quake3.qc
index c1bf96cd8805566f9360ead5dc91eba64835546d..921da4f3a28f0b37ce52db585d9fbce10eae97f4 100644 (file)
@@ -129,7 +129,7 @@ void target_give_init(entity this)
                else if (targ.classname == "item_health_mega")
                        this.health = 200;
                //remove(targ); // removing ents in init functions causes havoc, workaround:
-        targ.think = SUB_Remove_self;
+        setthink(targ, SUB_Remove_self);
         targ.nextthink = time;
        }
        this.spawnflags = 2;