From 445f7eb3d53250aefe3344a7d31472e19e82b58e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 17 Feb 2020 15:52:02 +0100 Subject: [PATCH] Add virtual destructor to Battle. --- src/Battling/Models/Battle.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/Battle.hpp b/src/Battling/Models/Battle.hpp index cb74f10..d7546e2 100644 --- a/src/Battling/Models/Battle.hpp +++ b/src/Battling/Models/Battle.hpp @@ -39,7 +39,7 @@ namespace CreatureLib::Battling { } } - ~Battle() { + virtual ~Battle() { for (auto s : _sides) { delete s; }