From 0a4f9218e201fefb4c34a2250f769d9df79f7d8c Mon Sep 17 00:00:00 2001 From: devZoGok Date: Thu, 28 Dec 2023 19:54:36 +0200 Subject: [PATCH] corrected destructors --- structure.cpp | 1 - unit.h | 2 +- vehicle.cpp | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/structure.cpp b/structure.cpp index 2fc6b06..9070efd 100644 --- a/structure.cpp +++ b/structure.cpp @@ -19,7 +19,6 @@ namespace battleship{ Structure::~Structure(){ removeBar(buildStatusForeground); removeBar(buildStatusBackground); - Unit::~Unit(); } void Structure::update(){ diff --git a/unit.h b/unit.h index 3703248..355af91 100755 --- a/unit.h +++ b/unit.h @@ -68,7 +68,7 @@ namespace battleship{ }; Unit(Player*, int, vb01::Vector3, vb01::Quaternion); - ~Unit(); + virtual ~Unit(); virtual void update(); virtual void blowUp(); virtual void halt(); diff --git a/vehicle.cpp b/vehicle.cpp index 03589bb..b35a51d 100644 --- a/vehicle.cpp +++ b/vehicle.cpp @@ -29,8 +29,6 @@ namespace battleship{ Vehicle::~Vehicle(){ removeAllPathpoints(); delete debugMat; - - Unit::~Unit(); } void Vehicle::update(){