mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qwaq] Fix incorrect setting of progs argc/argv
This commit is contained in:
parent
19c75f5e49
commit
7f96b0fbed
1 changed files with 3 additions and 3 deletions
|
@ -223,13 +223,13 @@ spawn_progs (qwaq_thread_t *thread)
|
|||
}
|
||||
|
||||
PR_PushFrame (pr);
|
||||
if (thread->args.size > 2) {
|
||||
pr_argc = thread->args.size - 1;
|
||||
if (thread->args.size) {
|
||||
pr_argc = thread->args.size;
|
||||
}
|
||||
pr_argv = PR_Zone_Malloc (pr, (pr_argc + 1) * 4);
|
||||
pr_argv[0] = PR_SetTempString (pr, name);
|
||||
for (i = 1; i < pr_argc; i++)
|
||||
pr_argv[i] = PR_SetTempString (pr, thread->args.a[1 + i]);
|
||||
pr_argv[i] = PR_SetTempString (pr, thread->args.a[i]);
|
||||
pr_argv[i] = 0;
|
||||
|
||||
PR_RESET_PARAMS (pr);
|
||||
|
|
Loading…
Reference in a new issue