(svn r26828) -Fix: memory leak when passing -c multiple times

pull/155/head
rubidium 10 years ago
parent 5ecbc2dd16
commit 876d87097a

@ -667,7 +667,7 @@ int openttd_main(int argc, char *argv[])
goto exit_noshutdown;
}
case 'G': scanner->generation_seed = atoi(mgo.opt); break;
case 'c': _config_file = stredup(mgo.opt); break;
case 'c': free(_config_file); _config_file = stredup(mgo.opt); break;
case 'x': scanner->save_config = false; break;
case 'h':
i = -2; // Force printing of help.

Loading…
Cancel
Save