fix(config): loaded flag and checks added
added check to make sure that config file has been loaded before any config variables are accessed
This commit is contained in:
@@ -26,6 +26,7 @@ bool Config::loadConfig(const std::string& configFile) {
|
||||
std::cerr << "Error: " << e.what() << std::endl;
|
||||
return false;
|
||||
}
|
||||
loaded = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user