Make DataLibrary destructor virtual.
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
d266700822
commit
db2eb0c3fa
@ -26,7 +26,7 @@ namespace CreatureLib::Library {
|
|||||||
CreatureLib::Library::AttackLibrary* attacks, CreatureLib::Library::ItemLibrary* items,
|
CreatureLib::Library::AttackLibrary* attacks, CreatureLib::Library::ItemLibrary* items,
|
||||||
CreatureLib::Library::GrowthRateLibrary* growthRates, TypeLibrary* typeLibrary);
|
CreatureLib::Library::GrowthRateLibrary* growthRates, TypeLibrary* typeLibrary);
|
||||||
|
|
||||||
~DataLibrary() {
|
virtual ~DataLibrary() {
|
||||||
delete _species;
|
delete _species;
|
||||||
delete _attacks;
|
delete _attacks;
|
||||||
delete _items;
|
delete _items;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user