diff --git a/src/orders.cpp b/src/orders.cpp index 9d6a77c..fa96382 100644 --- a/src/orders.cpp +++ b/src/orders.cpp @@ -20,10 +20,10 @@ const fs::path &orders::get_path() { orders::orders(const with_data_directory &dir) : json(json::array()), data_directory(dir) { - if (!fs::exists(get_path())) { - write(); - } else { + if (fs::exists(get_path())) { load(); + } else { + write(); } }