mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix auto-addition of -dedictated
This commit is contained in:
parent
7ff1534e9d
commit
c1a43705da
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ main (int argc, const char **argv)
|
|||
for (i = 1; i < argc; i++)
|
||||
if (!strcmp (argv[i], "-dedicated"))
|
||||
break;
|
||||
if (i != argc) {
|
||||
if (i == argc) {
|
||||
const char **newargv;
|
||||
|
||||
newargv = malloc ((argc + 2) * sizeof (*newargv));
|
||||
|
|
|
@ -69,7 +69,7 @@ main (int argc, const char **argv)
|
|||
for (i = 1; i < argc; i++)
|
||||
if (!strcmp (argv[i], "-dedicated"))
|
||||
break;
|
||||
if (i != argc) {
|
||||
if (i == argc) {
|
||||
const char **newargv;
|
||||
|
||||
newargv = malloc ((argc + 2) * sizeof (*newargv));
|
||||
|
|
Loading…
Reference in a new issue