diff --git a/src/Engine/App/Component.cpp b/src/Engine/App/Component.cpp index 3a1ca0a3..98e6b0c2 100644 --- a/src/Engine/App/Component.cpp +++ b/src/Engine/App/Component.cpp @@ -97,7 +97,7 @@ bool RenderComponent::onRender(RenderBackendService *renderBackendSrv) { return true; } -LightComponent::LightComponent(Entity *owner) : Component(owner, ComponentType::LightComponentType), mLight(nullptr) { +LightComponent::LightComponent(Entity *owner) : Component(owner, ComponentType::LightComponentType) { // empty } diff --git a/src/Engine/App/Component.h b/src/Engine/App/Component.h index 42751ab3..24e9921a 100644 --- a/src/Engine/App/Component.h +++ b/src/Engine/App/Component.h @@ -185,7 +185,7 @@ class LightComponent final : public Component { bool onRender(RenderBackend::RenderBackendService *rbSrv) override; private: - RenderBackend::Light *mLight; + RenderBackend::Light *mLight = nullptr; }; } // namespace App