diff --git a/src/TableData.cpp b/src/TableData.cpp index daa5dc0..0a1310f 100644 --- a/src/TableData.cpp +++ b/src/TableData.cpp @@ -1075,7 +1075,9 @@ void TableData::init() { std::pair& table = tables[i]; fstream.open(settings::TDATADIR + "/" + table.second); // open file if (!fstream.fail()) { - fstream >> *table.first; // load file contents into table + // tolerate empty gruntwork file + if (!(table.first == &gruntwork && fstream.peek() == std::ifstream::traits_type::eof())) + fstream >> *table.first; // load file contents into table } else { if (table.first != &gruntwork) { // gruntwork isn't critical std::cerr << "[FATAL] Critical tdata file missing: " << table.second << std::endl;