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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarClientCommandProcessor.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-05-14 13:13:23 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-05-14 13:13:23 +1000
commit21c0682e3f98ee8afacff7be90828b05bc6ccb60 (patch)
tree5a256787d1080809f57aeb5fb295e03f8a426b8b /source/frontend/StarClientCommandProcessor.cpp
parenta840f75d41be4765a476b1043b6a38f350d800e6 (diff)
fix underflow on input clipboard allow state
Diffstat (limited to 'source/frontend/StarClientCommandProcessor.cpp')
-rw-r--r--source/frontend/StarClientCommandProcessor.cpp2
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 '/'");