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