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