From: Michal MalĂ˝ Date: Sat, 1 Aug 2015 14:36:24 +0000 (+0200) Subject: Do not set the type of SDL2 effect twice X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=bace20c52215b9b0203b02ecd171240ae83f8ae7;p=FFBChecker.git Do not set the type of SDL2 effect twice --- diff --git a/sdl2ffbconstanteffect.cpp b/sdl2ffbconstanteffect.cpp index 90c51f2..f5bbc10 100644 --- a/sdl2ffbconstanteffect.cpp +++ b/sdl2ffbconstanteffect.cpp @@ -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;