From fe3763ed33ed3ccd524c69ef3119bf125c59337d Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 2 Jul 2023 08:17:06 +1000 Subject: [PATCH] Update StarInput.cpp --- source/game/StarInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }