Again fixing configuration

This commit is contained in:
Maschell 2017-03-31 17:29:59 +02:00
parent e3af97b932
commit 5d2d29b4b9

View File

@ -50,7 +50,7 @@ bool ConfigValues::setIfValueIsAControllerPresetEx(std::string value,int slot,in
//We need this function here so we can use preset sticks. //We need this function here so we can use preset sticks.
bool ConfigValues::setIfValueIsPreset(std::map<std::string,const u8*> values,std::string possibleValue,int slot,int keyslot){ bool ConfigValues::setIfValueIsPreset(std::map<std::string,const u8*> values,std::string possibleValue,int slot,int keyslot){
if(slot > gHIDMaxDevices || slot > 0 || keyslot < 0 || keyslot >= CONTRPS_MAX_VALUE){ if(slot > gHIDMaxDevices || slot < 0 || keyslot < 0 || keyslot >= CONTRPS_MAX_VALUE){
return false; return false;
} }
const u8 * values_ = NULL; const u8 * values_ = NULL;