mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
minimize extra dv::value copies
This commit is contained in:
parent
bd176f24e1
commit
3953583605
14 changed files with 29 additions and 26 deletions
|
|
@ -54,7 +54,7 @@ static int l_spawn(lua::State* L) {
|
|||
if (lua::gettop(L) > 2) {
|
||||
args = lua::tovalue(L, 3);
|
||||
}
|
||||
level->entities->spawn(def, pos, args);
|
||||
level->entities->spawn(def, pos, std::move(args));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue