From 9ac94a33f24a41100b62414ed0a05be87c7cdb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Sun, 16 May 2021 12:05:29 +0200 Subject: [PATCH] disallow TOP_NEW_IMAGE add op --- code/game/source/editors/texed_widgets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/source/editors/texed_widgets.c b/code/game/source/editors/texed_widgets.c index ee7f32d..a1d32bc 100644 --- a/code/game/source/editors/texed_widgets.c +++ b/code/game/source/editors/texed_widgets.c @@ -86,8 +86,8 @@ void texed_draw_oplist_pane(zpl_aabb2 r) { is_add_op_dropbox_open = true; zpl_memset(add_op_list, 0, sizeof(add_op_list)); - for (int i = 0; i < DEF_OPS_LEN; i += 1) { - zpl_strcat(add_op_list, zpl_bprintf("%.*s%s", i == 0 ? 0 : 1, ";", default_ops[i].name)); + for (int i = 1; i < DEF_OPS_LEN; i += 1) { + zpl_strcat(add_op_list, zpl_bprintf("%.*s%s", i == 1 ? 0 : 1, ";", default_ops[i].name)); } }