Commit 7a9966af9d7f4817b72d28a5af38751b0968d1ca

Sam Lantinga 2022-12-14T14:24:58

Fixed crash in SDL_PrivateGameControllerRefreshMapping()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c
index f63368e..3c6a6fa 100644
--- a/src/joystick/SDL_gamecontroller.c
+++ b/src/joystick/SDL_gamecontroller.c
@@ -1211,8 +1211,6 @@ static void SDL_PrivateGameControllerRefreshMapping(ControllerMapping_t *pContro
                 SDL_PushEvent(&event);
             }
         }
-
-        controller = controller->next;
     }
 }