Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 08:17:06 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 08:17:06 +1000
commitfe3763ed33ed3ccd524c69ef3119bf125c59337d (patch)
tree3c4d3bcdc70279f316d844327b65b7ae09693b3f
parent3fc7a85a525ad98e44268fed3f3852ba4e6e7336 (diff)
Update StarInput.cpp
-rw-r--r--source/game/StarInput.cpp2
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;
}