CScriptLayer: Add const overload for operator[]

Behavioral symmetry.
This commit is contained in:
Lioncash 2020-06-18 04:47:15 -04:00
parent 2b7c322e59
commit a55fafac22
1 changed files with 1 additions and 0 deletions

View File

@ -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