2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 00:27:42 +00:00

World/CScript*: Pass by reference over by value

Based off the use of the const, it's likely that these were intended to
be references, rather than be copied by value
This commit is contained in:
Lioncash
2019-09-06 10:49:51 -04:00
parent fea7984f71
commit 2c6aed7033
4 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ CMaterialList MakeDockMaterialList() {
return list;
}
CScriptDock::CScriptDock(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CVector3f position,
CScriptDock::CScriptDock(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CVector3f& position,
const zeus::CVector3f& extents, s32 dock, TAreaId area, bool active, s32 dockReferenceCount,
bool loadConnected)
: CPhysicsActor(uid, active, name, info, zeus::CTransform(zeus::CMatrix3f(), position),