Fix WUPSConfigItemMultipleValues::CreateFromValue

This commit is contained in:
Maschell 2024-03-02 10:45:59 +01:00
parent c3f5bd8d7b
commit 284713c9f6

View File

@ -62,10 +62,10 @@ std::optional<WUPSConfigItemMultipleValues> WUPSConfigItemMultipleValues::Create
if (defaultIndex != -1 && currentValueIndex != -1) {
break;
}
if (cur.value == defaultValue) {
if (cur.value == currentValue) {
currentValueIndex = i;
}
if (cur.value == currentValue) {
if (cur.value == defaultValue) {
defaultIndex = i;
}
i++;