Add virtual destructor to CreatureParty.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
445f7eb3d5
commit
75bce0e329
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user