1 parent 1dd06c8 commit 089bb32Copy full SHA for 089bb32
1 file changed
src/Plugin.cpp
@@ -159,7 +159,8 @@ void OnInputLoaded()
159
{ LongPressAction::kQuests, "Quests" },
160
{ LongPressAction::kJournal, "Journal" },
161
};
162
- const auto actionName = kActionNames.contains(btn.action) ? kActionNames.at(btn.action) : "Unknown";
+ const auto it = kActionNames.find(btn.action);
163
+ const auto actionName = it != kActionNames.end() ? it->second : "Unknown";
164
logger::info("{} → {}", btn.name, actionName);
165
}
166
0 commit comments