]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use REGISTRY_MAX macro in guide.qh
authorotta8634 <k9wolf@pm.me>
Mon, 23 Dec 2024 08:22:49 +0000 (16:22 +0800)
committerotta8634 <k9wolf@pm.me>
Mon, 23 Dec 2024 08:22:49 +0000 (16:22 +0800)
qcsrc/menu/xonotic/guide/guide.qh

index de9d085fcaa51d6f2658e2c3001191e7da1a7e9f..88ad489f9a51f68daaa4d729f8a6d9f2155b2321 100644 (file)
@@ -38,7 +38,7 @@ ArrayList arr_name##_MENU; \
 int arr_name##_MENU_COUNT; \
 STATIC_INIT_LATE(arr_name##_MENU) \
 { \
-       AL_NEW(arr_name##_MENU, register_arr##_MAX, NULL, e); \
+       AL_NEW(arr_name##_MENU, REGISTRY_MAX(register_arr), NULL, e); \
        FOREACH(register_arr, !it.m_hidden && (cond), { \
                AL_sete(arr_name##_MENU, arr_name##_MENU_COUNT, it); \
                arr_name##_MENU_COUNT++; \