Made CreatureSpecies destructor virtual.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f973259bef
commit
3f57051219
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue