mirror of https://github.com/AxioDL/metaforce.git
CEntity: Rename ConnectionList() to GetConnectionList()
Allows const overloading to function, preventing compilation errors from occuring across constness changes.
This commit is contained in:
parent
8644b8393b
commit
f2b1e44ee1
|
@ -61,8 +61,8 @@ public:
|
|||
TEditorId GetEditorId() const { return xc_editorId; }
|
||||
void SendScriptMsgs(EScriptObjectState state, CStateManager& stateMgr, EScriptObjectMessage msg);
|
||||
|
||||
std::vector<SConnection>& GetConnectionList() { return x20_conns; }
|
||||
const std::vector<SConnection>& GetConnectionList() const { return x20_conns; }
|
||||
std::vector<SConnection>& ConnectionList() { return x20_conns; }
|
||||
|
||||
std::string_view GetName() const { return x10_name; }
|
||||
};
|
||||
|
|
|
@ -40,7 +40,7 @@ void CScriptCameraHint::InitializeInArea(CStateManager& mgr) {
|
|||
continue;
|
||||
TUniqueId id = mgr.GetIdForScript(conn2.x8_objId);
|
||||
if (TCastToPtr<CPathCamera>(mgr.ObjectById(id)) || TCastToPtr<CScriptSpindleCamera>(mgr.ObjectById((id)))) {
|
||||
it = ent->ConnectionList().erase(it);
|
||||
it = ent->GetConnectionList().erase(it);
|
||||
if (x164_delegatedCamera != id)
|
||||
x164_delegatedCamera = id;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue