Add virtual destructor to Battle.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace CreatureLib::Battling {
|
||||
}
|
||||
}
|
||||
|
||||
~Battle() {
|
||||
virtual ~Battle() {
|
||||
for (auto s : _sides) {
|
||||
delete s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user