Skip to content

Commit d9c20cf

Browse files
Sackzementslouken
authored andcommitted
SDL_SendJoystickVirtualSensorDataInner(): Fix max_sensor_events increment
1 parent de742e9 commit d9c20cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/virtual/SDL_virtualjoystick.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ bool SDL_SendJoystickVirtualSensorDataInner(SDL_Joystick *joystick, SDL_SensorTy
471471
return false;
472472
}
473473
hwdata->sensor_events = sensor_events;
474-
hwdata->max_sensor_events = hwdata->max_sensor_events;
474+
hwdata->max_sensor_events = new_max_sensor_events;
475475
}
476476

477477
VirtualSensorEvent *event = &hwdata->sensor_events[hwdata->num_sensor_events++];

0 commit comments

Comments
 (0)