Merge pull request #6312 from Hinsbart/guid_fix

Fix crash when trying to access the guid of an unavailable Gamepad.
This commit is contained in:
Rémi Verschelde 2016-08-28 17:48:19 +02:00 committed by GitHub
commit 1b80edafca

View file

@ -1055,6 +1055,7 @@ bool InputDefault::is_joy_mapped(int p_device) {
}
String InputDefault::get_joy_guid_remapped(int p_device) const {
ERR_FAIL_COND_V(!joy_names.has(p_device), "");
return joy_names[p_device].uid;
}