From ffc9a0d71db1e2dfca1950c69202fd9c943d0d5f Mon Sep 17 00:00:00 2001 From: MuhXd Date: Tue, 31 Dec 2024 13:31:00 +0000 Subject: [PATCH] So like, this fixes a important crash --- src/jsonReader/Json.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jsonReader/Json.hpp b/src/jsonReader/Json.hpp index 42cbc7a..61653c8 100644 --- a/src/jsonReader/Json.hpp +++ b/src/jsonReader/Json.hpp @@ -30,6 +30,8 @@ class JsonReader { auto configDir = Mod::get()->getConfigDir(); auto clicksPath = configDir / "Clicks" / "clicks-main"; if (std::filesystem::exists(clicksPath)) { + memeData.clear(); + usefulData.clear(); loadCategoryData(clicksPath / "Meme", memeData); loadCategoryData(clicksPath / "Useful", usefulData); hassomedata = true;