diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-05-14 13:13:23 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-05-14 13:13:23 +1000 |
commit | 21c0682e3f98ee8afacff7be90828b05bc6ccb60 (patch) | |
tree | 5a256787d1080809f57aeb5fb295e03f8a426b8b /source/frontend/StarClientCommandProcessor.cpp | |
parent | a840f75d41be4765a476b1043b6a38f350d800e6 (diff) |
fix underflow on input clipboard allow state
Diffstat (limited to 'source/frontend/StarClientCommandProcessor.cpp')
-rw-r--r-- | source/frontend/StarClientCommandProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarClientCommandProcessor.cpp b/source/frontend/StarClientCommandProcessor.cpp index d0afb0c..599d506 100644 --- a/source/frontend/StarClientCommandProcessor.cpp +++ b/source/frontend/StarClientCommandProcessor.cpp @@ -78,7 +78,7 @@ String ClientCommandProcessor::previewQuestPane(StringList const& arguments, fun StringList ClientCommandProcessor::handleCommand(String const& commandLine, bool userInput) { Maybe<Input::ClipboardUnlock> unlock; if (userInput) // allow clipboard usage during this code - unlock = Input::singleton().unlockClipboard(); + unlock = std::move(Input::singleton().unlockClipboard()); try { if (!commandLine.beginsWith("/")) throw StarException("ClientCommandProcessor expected command, does not start with '/'"); |