From cd620e17ecb8129dd13e4f103a175f2dd7e6a040 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 9 Dec 2017 15:03:44 +0800 Subject: [PATCH] [Server] Use std::move(tokens) --- apps/openmw-mp/Script/CommandController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw-mp/Script/CommandController.cpp b/apps/openmw-mp/Script/CommandController.cpp index 673c094ba..78683697a 100644 --- a/apps/openmw-mp/Script/CommandController.cpp +++ b/apps/openmw-mp/Script/CommandController.cpp @@ -73,7 +73,7 @@ std::pair CommandController::exec(co if (cmd != commands.end()) { tokens.pop_front(); - bool result = cmd->second.func(player, sol::as_table(tokens), channel); + bool result = cmd->second.func(player, sol::as_table(move(tokens)), channel); if (result) return make_pair(ExecResult::SUCCESS, "");