From c1084a022d4134f66b3f583c09cffcc3af83d572 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Fri, 25 Aug 2023 20:13:56 +0200 Subject: [PATCH] forgot a virtual dtor --- BBGE/SplineGrid.cpp | 4 ++++ BBGE/SplineGrid.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/BBGE/SplineGrid.cpp b/BBGE/SplineGrid.cpp index 3d7b2be..1f11f4b 100644 --- a/BBGE/SplineGrid.cpp +++ b/BBGE/SplineGrid.cpp @@ -11,6 +11,10 @@ SplineGridCtrlPoint::SplineGridCtrlPoint() setWidthHeight(8, 8); } +SplineGridCtrlPoint::~SplineGridCtrlPoint() +{ +} + Vector SplineGridCtrlPoint::getSplinePosition() const { SplineGridCtrlPoint *p = (SplineGridCtrlPoint*)getParent(); diff --git a/BBGE/SplineGrid.h b/BBGE/SplineGrid.h index 534252c..3a0503d 100644 --- a/BBGE/SplineGrid.h +++ b/BBGE/SplineGrid.h @@ -17,6 +17,7 @@ class SplineGridCtrlPoint : public Quad { public: SplineGridCtrlPoint(); + virtual ~SplineGridCtrlPoint(); virtual void onUpdate(float dt) OVERRIDE; Vector getSplinePosition() const; void setSplinePosition(Vector pos); @@ -30,7 +31,7 @@ public: typedef Vector value_type; SplineGrid(); - ~SplineGrid(); + virtual ~SplineGrid(); // # of control points on each axis RenderGrid *resize(size_t w, size_t h, size_t xres, size_t yres, unsigned degx, unsigned degy);