]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/registry.qh
Weapons: rename registry globals
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / registry.qh
index b74c4783b9285debdd37b718561ddafaf5287a27..942c5b2bba5858921b8a1c19615cefb3905099e0 100644 (file)
@@ -68,7 +68,7 @@
         return strcasecmp(a, b);                                \
     }                                                           \
     STATIC_INIT(Registry_sort_##id) {                           \
-        heapsort(id##_COUNT, _REGISTRY_SWAP_##id, _REGISTRY_CMP_##id, NULL); \
+        heapsort(id##_COUNT - (skip), _REGISTRY_SWAP_##id, _REGISTRY_CMP_##id, NULL); \
     }
 
 #endif