mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +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
|
|
@ -173,8 +173,7 @@ entityid_t Entities::spawn(
|
|||
}
|
||||
body.hitbox.position = tsf.pos;
|
||||
scripting::on_entity_spawn(
|
||||
def, id, scripting.components, std::move(args), std::move(componentsMap)
|
||||
);
|
||||
def, id, scripting.components, args, componentsMap);
|
||||
return id;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue