]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/triggers.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / triggers.qc
index 0e13a6bdeb77ce0bfeb9698b67f548ce6d2ba261..a9050357f6e97b5bf7851968239bb266404b5f57 100644 (file)
@@ -224,7 +224,7 @@ void SUB_UseTargets(entity this, entity actor, entity trigger)
        s = this.killtarget;
        if (s != "")
        {
-               for(entity t = world; (t = find(t, targetname, s)); )
+               for(entity t = NULL; (t = find(t, targetname, s)); )
                        remove(t);
        }
 #endif
@@ -251,7 +251,7 @@ void SUB_UseTargets(entity this, entity actor, entity trigger)
                        // Flag to set func_clientwall state
                        // 1 == deactivate, 2 == activate, 0 == do nothing
                        int aw_flag = this.antiwall_flag;
-                       for(entity t = world; (t = find(t, targetname, s)); )
+                       for(entity t = NULL; (t = find(t, targetname, s)); )
                        {
                                if(t.use)
                                {