Made CreatureSpecies destructor virtual.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-02-09 10:47:18 +01:00
parent f973259bef
commit 3f57051219
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ namespace CreatureLib::Library {
CreatureSpecies(uint16_t id, std::string name, const SpeciesVariant* defaultVariant, float genderRatio,
std::string growthRate, uint8_t captureRate);
~CreatureSpecies() {
virtual ~CreatureSpecies() {
for (auto v : _variants)
delete v.second;
_variants.clear();