mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
[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:
parent
73cffe283a
commit
00fb0972a8
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue