From 485c40d45bcc98ea2625279f6349aa7247fdd4c4 Mon Sep 17 00:00:00 2001 From: otta8634 Date: Mon, 23 Dec 2024 16:22:49 +0800 Subject: [PATCH] Use REGISTRY_MAX macro in guide.qh --- qcsrc/menu/xonotic/guide/guide.qh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; \ -- 2.39.2