From bace20c52215b9b0203b02ecd171240ae83f8ae7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sat, 1 Aug 2015 16:36:24 +0200 Subject: [PATCH] Do not set the type of SDL2 effect twice --- sdl2ffbconstanteffect.cpp | 1 - 1 file changed, 1 deletion(-) 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; -- 2.43.5