CScriptLayer: Add const overload for operator[]
Behavioral symmetry.
This commit is contained in:
parent
2b7c322e59
commit
a55fafac22
|
@ -111,6 +111,7 @@ public:
|
|||
|
||||
// Operators
|
||||
CScriptObject* operator[](uint32 Index) { return InstanceByIndex(Index); }
|
||||
const CScriptObject* operator[](uint32 Index) const { return InstanceByIndex(Index); }
|
||||
};
|
||||
|
||||
#endif // CSCRIPTLAYER_H
|
||||
|
|
Loading…
Reference in New Issue