]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Do not set the type of SDL2 effect twice
authorMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 14:36:24 +0000 (16:36 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 14:36:24 +0000 (16:36 +0200)
sdl2ffbconstanteffect.cpp

index 90c51f2cf7624f16944f1ffd2389db9dbcaae17c..f5bbc10a7b6e2d8f5930b8674920b990d70c45f7 100644 (file)
@@ -12,7 +12,6 @@ SDL_HapticEffect* SDL2FFBConstantEffect::createFFstruct()
     return nullptr;
 
   effect->type = SDL_HAPTIC_CONSTANT;
-  effect->constant.type = SDL_HAPTIC_CONSTANT;
   effect->constant.direction.type = SDL_HAPTIC_POLAR;
   effect->constant.direction.dir[0] = m_params->direction;