Skip to content
Snippets Groups Projects
Commit b68a1bfd authored by sphere's avatar sphere
Browse files

Merge branch 'fix-1241' into 'next'

Fix #1241

Closes #1241

See merge request STJr/SRB2!2481
parents 62af0a82 650f7a52
No related branches found
No related tags found
No related merge requests found
......@@ -582,7 +582,7 @@ boolean Snake_JoyGrabber(void *opaque, event_t *ev)
{
snake_t *snake = opaque;
if (ev->type == ev_joystick && ev->key == 0)
if (snake != NULL && ev->type == ev_joystick && ev->key == 0)
{
snake->joyevents[snake->joyeventcount] = ev;
snake->joyeventcount++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment