mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Merge branch 'fix-1241' into 'next'
Fix #1241 Closes #1241 See merge request STJr/SRB2!2481
This commit is contained in:
commit
b68a1bfdf3
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue