]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/sortlist.qc
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / sortlist.qc
index 1d8726c89847681802ce2f3656aa37f850174ca6..6748b60cd77954e84064e072a6d6cef715be0804 100644 (file)
@@ -13,7 +13,7 @@ entity Sort_New(float(entity,entity) cmp)
     entity sort;
     sort = spawn();
     sort.sort_cmp = cmp;
-    sort.sort_next = world;
+    sort.sort_next = NULL;
     sort.chain = sort;
     return sort;
 }
@@ -56,7 +56,7 @@ void Sort_Reset(entity sort)
 
 float Sort_HasNext(entity sort)
 {
-    return (sort.chain.sort_next != world);
+    return (sort.chain.sort_next != NULL);
 }
 
 entity Sort_Next(entity sort)
@@ -67,7 +67,7 @@ entity Sort_Next(entity sort)
         next = spawn();
         sort.chain.sort_next = next;
         next.sort_prev = sort.chain;
-        next.sort_next = world;
+        next.sort_next = NULL;
     }
     sort.chain = next;
     return next;