Add virtual destructor to CreatureParty.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-02-17 15:52:59 +01:00
parent 445f7eb3d5
commit 75bce0e329
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace CreatureLib::Battling {
CreatureParty(std::vector<Creature*> party) : _party(party) {}
CreatureParty(std::initializer_list<Creature*> party) : _party(party) {}
~CreatureParty() {
virtual ~CreatureParty() {
for (auto c : _party) {
delete c;
}