fixing the position of the arguments before --wizard

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4828 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-10 21:45:36 +00:00
parent 78ad6b8420
commit 4b5124ce93
+5 -2
View File
@@ -28,8 +28,11 @@ int wizardmain(int argc, char **argv)
return EXIT_FAILURE;
}
string outfile(argv[1]);
string relpath(argv[2]);
/* You will never now what server.sh script will really place before --wizard */
int i = 0;
while (strncmp(argv[i],"--wizard",8)) i++;
string outfile(argv[++i]);
string relpath(argv[++i]);
map<string, string> args;