aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai4
1 files 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);
<<db = .{};
}