From 3bc34893905a2df622894aadcb6669f27f186772 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 9 Oct 2021 13:24:37 +0300 Subject: [PATCH] Make Light's constructor protected and add a virtual destructor --- source/materials/light.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/materials/light.h b/source/materials/light.h index 606ec673..c0f929cf 100644 --- a/source/materials/light.h +++ b/source/materials/light.h @@ -51,8 +51,9 @@ protected: Color color; unsigned generation; -public: Light(); +public: + virtual ~Light() { } /** Sets the color of the Light. */ void set_color(const Color &); -- 2.43.0