forked from teamnwah/openmw-tes3coop
[Server] Use std::move(tokens)
This commit is contained in:
parent
dd352f0a91
commit
cd620e17ec
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ std::pair<CommandController::ExecResult, std::string> 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, "");
|
||||
|
||||
|
|
Loading…
Reference in a new issue