Checking the bitmask properly..

This commit is contained in:
Maschell 2017-04-01 18:02:10 +02:00
parent b7d529cce5
commit 521bf6fba5

View File

@ -238,7 +238,7 @@ CONTROLLER_PATCHER_RESULT_OR_ERROR ControllerPatcherUtils::isValueSet(HID_Data *
result = 1;
}
}else{
if(cur_data[config_controller[deviceslot][cur_config][0]] & config_controller[deviceslot][cur_config][1]){
if((cur_data[config_controller[deviceslot][cur_config][0]] & config_controller[deviceslot][cur_config][1]) == config_controller[deviceslot][cur_config][1]){
result = 1;
}
}