(WINRAW) Fix crash when overlay is enabled

This commit is contained in:
sonninnos 2021-08-24 17:03:28 +03:00
parent 919954c5be
commit 957b71cfdc

View File

@ -876,9 +876,12 @@ static int16_t winraw_input_state(
if (!check_pos && idx > 0) /* idx = 0 has mouse fallback. */
return 0;
x = mouse->x;
y = mouse->y;
pointer_down = mouse->btn_l;
if (mouse)
{
x = mouse->x;
y = mouse->y;
pointer_down = mouse->btn_l;
}
if (check_pos)
{