Update StarInput.cpp

This commit is contained in:
Kae 2023-07-02 08:17:06 +10:00
parent 3fc7a85a52
commit fe3763ed33

View File

@ -30,7 +30,7 @@ KeyMod keyModsFromJson(Json const& json, uint8_t* priority = nullptr) {
return mod;
for (Json const& jMod : json.toArray()) {
if (priority && mod != (mod |= KeyModNames.getLeft(jMod.toString())))
if (mod != (mod |= KeyModNames.getLeft(jMod.toString())) && priority)
++*priority;
}