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

This commit is contained in:
Deukhoofd committed 2020-02-17 15:52:59 +01:00
1 parent 445f7eb3d5
commit 75bce0e329
1 file changed
+1 -1
+1 -1
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;
}