mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-15 08:06:10 +00:00
CScriptLayer: Add const overload for operator[]
Behavioral symmetry.
This commit is contained in:
@@ -111,6 +111,7 @@ public:
|
|||||||
|
|
||||||
// Operators
|
// Operators
|
||||||
CScriptObject* operator[](uint32 Index) { return InstanceByIndex(Index); }
|
CScriptObject* operator[](uint32 Index) { return InstanceByIndex(Index); }
|
||||||
|
const CScriptObject* operator[](uint32 Index) const { return InstanceByIndex(Index); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CSCRIPTLAYER_H
|
#endif // CSCRIPTLAYER_H
|
||||||
|
|||||||
Reference in New Issue
Block a user