mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
[ruamoko] Include param size in size of args block
I forget it every time. It really doesn't help that params are 4 words and words are 4 bytes, so seeing a size of 12 for 3 parameters *looks* right.
This commit is contained in:
parent
fa0a74efdf
commit
9b0368039e
1 changed files with 1 additions and 1 deletions
|
@ -1260,7 +1260,7 @@ rua___obj_forward (progs_t *pr)
|
|||
// forward:(SEL) sel :(@va_list) args
|
||||
// args is full param list
|
||||
//FIXME oh for a stack
|
||||
size_t size = pr->pr_argc * sizeof (pr_type_t);
|
||||
size_t size = pr->pr_argc * pr->pr_param_size * sizeof(pr_type_t);
|
||||
string_t args_block = PR_AllocTempBlock (pr, size);
|
||||
|
||||
int argc = pr->pr_argc;
|
||||
|
|
Loading…
Reference in a new issue