diff --git a/src/Core/Resource/Script/CScriptLayer.h b/src/Core/Resource/Script/CScriptLayer.h index ed52ee96..6620db92 100644 --- a/src/Core/Resource/Script/CScriptLayer.h +++ b/src/Core/Resource/Script/CScriptLayer.h @@ -42,7 +42,7 @@ public: } } - void RemoveInstance(CScriptObject *pInstance) + void RemoveInstance(const CScriptObject *pInstance) { const auto it = std::find_if(mInstances.cbegin(), mInstances.cend(), [pInstance](const auto* instance) { return instance == pInstance; });