Selaa lähdekoodia

Fix MSVC syntax error

Fixes the following error:
`
error C2059: syntax error: '}'
`
Anonymous Maarten 2 kuukautta sitten
vanhempi
sitoutus
a472f5ea1e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_switch2.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapi_switch2.c

@@ -960,7 +960,7 @@ static bool UpdateRumble(SDL_DriverSwitch2_Context *ctx)
         return false;
     }
 
-    unsigned char rumble_data[64] = {};
+    unsigned char rumble_data[64] = {0};
     if (ctx->device->product_id == USB_PRODUCT_NINTENDO_SWITCH2_GAMECUBE_CONTROLLER) {
         Uint16 rumble_max = SDL_max(ctx->rumble_lo_amp, ctx->rumble_hi_amp);
         rumble_data[0x00] = 0x3;