This commit is contained in:
FelixKratz 2021-11-03 20:55:16 +01:00
parent 8b7c82f4ed
commit 7109724111

View file

@ -22,6 +22,7 @@ void custom_events_init(struct custom_events* custom_events) {
void custom_events_append(struct custom_events* custom_events, char* name, char* notification) {
if (custom_events_get_flag_for_name(custom_events, name) > 0) return;
custom_events->count++;
custom_events->events = (struct custom_event**) realloc(custom_events->events, sizeof(struct custom_event*) * custom_events->count);
custom_events->events[custom_events->count - 1] = custom_event_create();