Skip to content

Commit d48dd29

Browse files
committed
plug_quake3: G_REAL_TIME pointer check (fixed OmegA)
1 parent 3584377 commit d48dd29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/quake3/svq3_game.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,8 @@ static qintptr_t Q3G_SystemCalls(void *offset, quintptr_t mask, qintptr_t fn, co
10461046
return !!mapentspointer;
10471047

10481048
case G_REAL_TIME: // 41
1049-
VALIDATEPOINTER(arg[0], sizeof(q3time_t));
1049+
if (arg[0])
1050+
VALIDATEPOINTER(arg[0], sizeof(q3time_t));
10501051
return Q3VM_GetRealtime(VM_POINTER(arg[0]));
10511052
case G_SNAPVECTOR:
10521053
{

0 commit comments

Comments
 (0)