瀏覽代碼

Removed an assertion it's possible to hit

Sam Lantinga 1 年之前
父節點
當前提交
61704b5862
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      test/testcontroller.c

+ 0 - 2
test/testcontroller.c

@@ -967,8 +967,6 @@ static void HandleGamepadAdded(SDL_JoystickID id, SDL_bool verbose)
     int i;
     int i;
 
 
     i = FindController(id);
     i = FindController(id);
-
-    SDL_assert(i >= 0);
     if (i < 0) {
     if (i < 0) {
         return;
         return;
     }
     }