From dfbb09862913c6cf07be940306eb3bd5ff43ee25 Mon Sep 17 00:00:00 2001 From: moganda12 <115957608+moganda12@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:09:48 +0000 Subject: [PATCH] aother dumb bug --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index cf86158..4b46a8e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1153,7 +1153,7 @@ naming: std::remove("save/saveindex.json"); - std::ofstream indexFileWrite; + std::ofstream indexFileWrite("save/saveindex.json"); indexFileWrite << index.dump(4) << std::flush; @@ -1222,7 +1222,7 @@ select: std::remove("save/saveindex.json"); - std::ofstream indexFileWrite; + std::ofstream indexFileWrite("save/saveindex.json"); indexFileWrite << index.dump(4) << std::flush;