From: otta8634 Date: Mon, 23 Dec 2024 08:22:49 +0000 (+0800) Subject: Use REGISTRY_MAX macro in guide.qh X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=485c40d45bcc98ea2625279f6349aa7247fdd4c4;p=xonotic%2Fxonotic-data.pk3dir.git Use REGISTRY_MAX macro in guide.qh --- diff --git a/qcsrc/menu/xonotic/guide/guide.qh b/qcsrc/menu/xonotic/guide/guide.qh index de9d085fc..88ad489f9 100644 --- a/qcsrc/menu/xonotic/guide/guide.qh +++ b/qcsrc/menu/xonotic/guide/guide.qh @@ -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++; \