Skip to content

Commit

Permalink
So like, this fixes a important crash
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhXd committed Dec 31, 2024
1 parent 12ef7d7 commit ffc9a0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsonReader/Json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffc9a0d

Please sign in to comment.