[qwaq] Fix some incorrect parameter acesses

They weren't wrong as such (the data was being accessed correctly
anyway, just not ideal as the parameter access was slightly hidden.
This commit is contained in:
Bill Currie 2021-05-30 11:14:05 +09:00
parent 73cffe283a
commit 00fb0972a8
2 changed files with 2 additions and 2 deletions

View file

@ -1436,7 +1436,7 @@ static void
bi_get_event (progs_t *pr)
{
qwaq_resources_t *res = PR_Resources_Find (pr, "qwaq");
qwaq_event_t *event = &G_STRUCT (pr, qwaq_event_t, P_INT (pr, 0));
qwaq_event_t *event = &P_STRUCT (pr, qwaq_event_t, 0);
R_INT (pr) = get_event (res, event);
}

View file

@ -363,7 +363,7 @@ qdb_get_event (progs_t *pr)
__auto_type debug = PR_Resources_Find (pr, "qwaq-debug");
pointer_t handle = P_INT (pr, 0);
qwaq_target_t *target = get_target (debug, __FUNCTION__, handle);
__auto_type event = &G_STRUCT (pr, qdb_event_t, P_INT (pr, 1));
__auto_type event = &P_STRUCT (pr, qdb_event_t, 1);
memset (event, 0, sizeof (*event));
event->what = target->event;