Ignore invalid tablet driver name, when non are available.

This commit is contained in:
bruvzg 2020-05-26 21:03:45 +03:00
parent 24ad4894cc
commit ef1a305e50
No known key found for this signature in database
GPG key ID: EBDC1EE1E7261782

View file

@ -795,6 +795,9 @@ String OS_Windows::get_current_tablet_driver() const {
}
void OS_Windows::set_current_tablet_driver(const String &p_driver) {
if (get_tablet_driver_count() == 0) {
return;
}
bool found = false;
for (int i = 0; i < get_tablet_driver_count(); i++) {
if (p_driver == get_tablet_driver_name(i)) {