From 5d2d29b4b9497f52ea63ad7d525953a0a7cfdfa4 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 31 Mar 2017 17:29:59 +0200 Subject: [PATCH] Again fixing configuration --- config/ConfigValues.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ConfigValues.cpp b/config/ConfigValues.cpp index dd3a59b..bc6d659 100644 --- a/config/ConfigValues.cpp +++ b/config/ConfigValues.cpp @@ -50,7 +50,7 @@ bool ConfigValues::setIfValueIsAControllerPresetEx(std::string value,int slot,in //We need this function here so we can use preset sticks. bool ConfigValues::setIfValueIsPreset(std::map 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; } const u8 * values_ = NULL;