Merge pull request #50928 from Vitika9/50850

Removed Redundant assignement of name inside configure_joypad function
This commit is contained in:
Rémi Verschelde 2021-07-27 11:49:36 +02:00 committed by GitHub
commit 77ca5e7b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,8 +286,9 @@ bool JoypadOSX::configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy) {
}
if ((!refCF) || (!CFStringGetCString((CFStringRef)refCF, c_name, sizeof(c_name), kCFStringEncodingUTF8))) {
name = "Unidentified Joypad";
} else {
name = c_name;
}
name = c_name;
int id = input->get_unused_joy_id();
ERR_FAIL_COND_V(id == -1, false);