diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-02 08:17:06 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-02 08:17:06 +1000 |
commit | fe3763ed33ed3ccd524c69ef3119bf125c59337d (patch) | |
tree | 3c4d3bcdc70279f316d844327b65b7ae09693b3f | |
parent | 3fc7a85a525ad98e44268fed3f3852ba4e6e7336 (diff) |
Update StarInput.cpp
-rw-r--r-- | source/game/StarInput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarInput.cpp b/source/game/StarInput.cpp index 89b2ed3..59b9593 100644 --- a/source/game/StarInput.cpp +++ b/source/game/StarInput.cpp @@ -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; } |