minimize extra dv::value copies
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user