Some more ~~insect~~ bug fixes.

This commit is contained in:
StackZ
2020-11-07 10:03:03 +01:00
parent ddbea3ab36
commit ee2769b294
6 changed files with 33 additions and 7 deletions
+5
View File
@@ -208,6 +208,11 @@ void Store::loadSheets() {
*/
void Store::LoadFromFile(const std::string &file) {
FILE *in = fopen(file.c_str(), "rt");
if (!in) {
this->valid = false;
return;
}
this->storeJson = nlohmann::json::parse(in, nullptr, false);
fclose(in);