ui: dialogue: +id_map

This commit is contained in:
2026-02-23 16:32:02 +02:00
parent acd03b2769
commit 57b858f98f
22 changed files with 106 additions and 28 deletions
+1
View File
@@ -178,6 +178,7 @@ void init_dialogue(dialogue_t *dialogue, const char title[], const char text[],
strcpy(dialogue->w.title, title);
t_size = strlen(text);
strcpy(dialogue->text, text);
init_d_arr_ptr(&(dialogue->id_map), MAX_IDS);
/* trim the last new line symbol */
if (t_size && dialogue->text[t_size - 1] == '\n')
dialogue->text[t_size - 1] = '\0';