fix(player_command): memory leak (#2504)

This commit is contained in:
Aure7138 2023-12-12 16:50:52 +08:00 committed by GitHub
parent d2bcd69eac
commit 7299be8cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,7 @@ namespace big
result.push(plyr_id);
}
new_args.reserve(args.size() - 1);
std::copy(++args.begin(), args.end(), new_args.begin());
// for (int i = 1; i < args.size(); i++)
// new_args.push_back(args[i]);