mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
add back deleter
This commit is contained in:
parent
85cd609168
commit
d572ce1f1c
@ -529,6 +529,12 @@ void Item::RemoveFromInventory() {
|
|||||||
|
|
||||||
Item::~Item() {
|
Item::~Item() {
|
||||||
delete preconditions;
|
delete preconditions;
|
||||||
|
|
||||||
|
for (auto* value : config) {
|
||||||
|
delete value;
|
||||||
|
}
|
||||||
|
|
||||||
|
config.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Item::SaveConfigXml(tinyxml2::XMLElement& i) const {
|
void Item::SaveConfigXml(tinyxml2::XMLElement& i) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user