You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix crash when trying to access the guid of an unavailable Gamepad.
Throws an error now.
This commit is contained in:
@@ -1055,6 +1055,7 @@ bool InputDefault::is_joy_mapped(int p_device) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String InputDefault::get_joy_guid_remapped(int p_device) const {
|
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;
|
return joy_names[p_device].uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user