Put default configs closer to the bottom
This commit is contained in:
@@ -197,7 +197,7 @@ int getconfigtouse(const char* config_file_str, char* car, int sim)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
int confignum = 0;
|
||||
int confignum = configs-1;
|
||||
slogt("Multiple configs found");
|
||||
for (j = 0; j < configs; j++)
|
||||
{
|
||||
@@ -223,8 +223,11 @@ int getconfigtouse(const char* config_file_str, char* car, int sim)
|
||||
slogt("matched default car");
|
||||
confignum = j;
|
||||
}
|
||||
if(confignum<configs-1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
return confignum;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user