mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
[ruamoko] Reset parameters before setting in listener
It's right there in the docs, even (though only on the macro, which I'd forgotten about). Fixes some nasty corruption.
This commit is contained in:
parent
dad19aa2ad
commit
b726c24b05
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ rua_listener_method (rua_in_cookie_t *cookie, const void *input)
|
|||
{
|
||||
progs_t *pr = cookie->pr;
|
||||
PR_PushFrame (pr);
|
||||
PR_RESET_PARAMS (pr);
|
||||
P_POINTER (pr, 0) = cookie->data;
|
||||
P_POINTER (pr, 1) = 0; // don't know the method name (selector)
|
||||
P_POINTER (pr, 2) = PR_SetPointer (pr, input);//FIXME check input
|
||||
|
|
Loading…
Reference in a new issue