src/haptic/darwin/SDL_syshaptic.c
changeset 9633 3e742dd2c13d
parent 9631 e015da7884df
child 9740 55e88e3bc7cc
--- a/src/haptic/darwin/SDL_syshaptic.c	Tue May 26 12:52:28 2015 -0400
+++ b/src/haptic/darwin/SDL_syshaptic.c	Tue May 26 16:14:25 2015 -0400
@@ -911,8 +911,8 @@
     case SDL_HAPTIC_DAMPER:
     case SDL_HAPTIC_INERTIA:
     case SDL_HAPTIC_FRICTION:
+        hap_condition = &src->condition;
         if (dest->cAxes > 0) {
-            hap_condition = &src->condition;
             condition = SDL_malloc(sizeof(FFCONDITION) * dest->cAxes);
             if (condition == NULL) {
                 return SDL_OutOfMemory();