Fix management issue
This commit is contained in:
1 parent
0cf2c8505e
commit
dc80884ab5
1 file changed
+2
-1
@@ -867,7 +867,8 @@ bool IsThisJoystickBlacklisted(int i)
|
||||
|
||||
const char* joyname = glfwGetJoystickName(i);
|
||||
|
||||
if (strncmp(joyname, gSelectedJoystickName, strlen(gSelectedJoystickName)) == 0)
|
||||
if (gSelectedJoystickName[0] != '\0' &&
|
||||
strncmp(joyname, gSelectedJoystickName, strlen(gSelectedJoystickName)) == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user