From 348b29910a7177802ed8962e9a9f89c9766bcb06 Mon Sep 17 00:00:00 2001 From: VoltZ <47382115+SuperSaiyajinVoltZ@users.noreply.github.com> Date: Wed, 20 Nov 2019 19:57:58 +0100 Subject: [PATCH] Whoopsie.. Fix files not deleting on TinyDB Screen? --- source/screens/tinyDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/screens/tinyDB.cpp b/source/screens/tinyDB.cpp index 0c9c1f8..fb54794 100644 --- a/source/screens/tinyDB.cpp +++ b/source/screens/tinyDB.cpp @@ -196,7 +196,7 @@ void TinyDB::Logic(u32 hDown, u32 hHeld, touchPosition touch) { } void TinyDB::execute() { - for(int i=0;i<(int)tinyDBJson.at(selectedOption).size();i++) { + for(int i=0;i<(int)tinyDBJson.at(selectedOption).at("script").size();i++) { std::string type = tinyDBJson.at(selectedOption).at("script").at(i).at("type"); if(type == "deleteFile") { bool missing = false;