From 21c0682e3f98ee8afacff7be90828b05bc6ccb60 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 14 May 2025 13:13:23 +1000 Subject: fix underflow on input clipboard allow state --- source/frontend/StarClientCommandProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarClientCommandProcessor.cpp') 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 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 '/'"); -- cgit v1.2.3