fix opendir trying to open an example directory instead of DATA_PATH

This commit is contained in:
TotallyNotElite 2020-03-01 13:58:36 +01:00
parent 937444ee94
commit 2e6cd78ecb

View File

@ -24,7 +24,7 @@ std::string getDataPath(std::string subpath)
{
cached_data_path = std::getenv("CH_DATA_PATH");
}
else if ((dir = opendir("mydir")))
else if ((dir = opendir(DATA_PATH)))
{
cached_data_path = DATA_PATH;
closedir(dir);