From 2a893df3b65bfd01e666c0df0498dba1694ebebe Mon Sep 17 00:00:00 2001 From: dam Date: Sat, 15 Apr 2023 17:27:01 +0100 Subject: Fix reset_database. --- ttt.jai | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ttt.jai b/ttt.jai index 6279f27..08b2ea4 100644 --- a/ttt.jai +++ b/ttt.jai @@ -530,8 +530,8 @@ void add_task_time(database_st *db, task_st *task, int day, int64_t time) { // Resets database to the initial state and deallocates all memory taken by tasks. reset_database :: (db: *Database) { - assert(db != null); - free(db.tasks.data); + assert(db != null, "Parameter 'db' is null."); + array_reset(*db.tasks); <