Fix up the pick custom scenario dialog

This commit is contained in:
2014-04-20 23:55:01 -04:00
parent ed4558f805
commit f9a21dd068
3 changed files with 10 additions and 9 deletions

View File

@@ -1023,7 +1023,6 @@ typedef struct {
*/
void build_scen_headers()
{
unsigned short cur_entry = 0;
fs::path scenDir = progDir;
// scenDir.erase(scenDir.find_last_of("/"));
scenDir /= "Blades of Exile Scenarios";
@@ -1057,10 +1056,9 @@ void build_scen_headers()
// FSGetCatalogInfoBulk (files,(ItemCount)MAXSHEETS,(ItemCount*)&numFound,NULL,kFSCatInfoNone,NULL,NULL,locations, names)
while(iter != fs::directory_iterator()) {
fs::file_status stat = iter->status();
if(stat.type() == fs::regular_file) {
if(stat.type() == fs::regular_file)
load_scenario_header(iter->path());
cur_entry++;
}
iter++;
}
if (scen_headers.size() == 0) { // no scens present
// TODO: Should something be done here?