Explorar o código

Fixed bug 3999 - Build failed when try to build with configure script for Android

Sam Lantinga %!s(int64=8) %!d(string=hai) anos
pai
achega
e0d0184f09
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/haptic/android/SDL_syshaptic.c

+ 1 - 2
src/haptic/android/SDL_syshaptic.c

@@ -165,8 +165,7 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick *joystick)
 {
     SDL_hapticlist_item *item;
     item = HapticByDevId(((joystick_hwdata *)joystick->hwdata)->device_id);
-    int ret = (item != NULL ? 1 : 0);
-    return ret;
+    return (item != NULL) ? 1 : 0;
 }