From 39daea6d9af509f97cb18a0de4bf08bb1d575eb5 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 24 Aug 2010 19:33:10 +0000 Subject: [PATCH] - bugfix for commandline parameters for validate factions --- source/glest_game/main/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index ee267fa7..6da1d642 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -679,12 +679,14 @@ int glestMain(int argc, char** argv){ // Did the user pass a specific list of factions to validate? std::vector 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; hasCommandArgument(argc, argv,string(GAME_ARGS[GAME_ARG_VALIDATE_FACTIONS]) + string("="),&foundParamIndIndex); + string filterList = argv[foundParamIndIndex]; vector paramPartTokens; Tokenize(filterList,paramPartTokens,"="); + if(paramPartTokens.size() >= 2) { string factionList = paramPartTokens[1]; Tokenize(factionList,filteredFactionList,",");