diff --git a/src/Core/Resource/Script/CScriptLayer.h b/src/Core/Resource/Script/CScriptLayer.h index 12036021..919012c8 100644 --- a/src/Core/Resource/Script/CScriptLayer.h +++ b/src/Core/Resource/Script/CScriptLayer.h @@ -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