- bugfix for commandline parameters for validate factions

This commit is contained in:
Mark Vejvoda 2010-08-24 19:33:10 +00:00
parent 3828d23670
commit 39daea6d9a

View File

@ -679,12 +679,14 @@ int glestMain(int argc, char** argv){
// Did the user pass a specific list of factions to validate? // Did the user pass a specific list of factions to validate?
std::vector<string> filteredFactionList; std::vector<string> filteredFactionList;
if(hasCommandArgument(argc, argv,string(GAME_ARGS[GAME_ARG_VALIDATE_TECHTREES]) + string("=")) == true) { if(hasCommandArgument(argc, argv,string(GAME_ARGS[GAME_ARG_VALIDATE_FACTIONS]) + string("=")) == true) {
int foundParamIndIndex = -1; int foundParamIndIndex = -1;
hasCommandArgument(argc, argv,string(GAME_ARGS[GAME_ARG_VALIDATE_FACTIONS]) + string("="),&foundParamIndIndex); hasCommandArgument(argc, argv,string(GAME_ARGS[GAME_ARG_VALIDATE_FACTIONS]) + string("="),&foundParamIndIndex);
string filterList = argv[foundParamIndIndex]; string filterList = argv[foundParamIndIndex];
vector<string> paramPartTokens; vector<string> paramPartTokens;
Tokenize(filterList,paramPartTokens,"="); Tokenize(filterList,paramPartTokens,"=");
if(paramPartTokens.size() >= 2) { if(paramPartTokens.size() >= 2) {
string factionList = paramPartTokens[1]; string factionList = paramPartTokens[1];
Tokenize(factionList,filteredFactionList,","); Tokenize(factionList,filteredFactionList,",");