mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
defs leak fix
This commit is contained in:
parent
fcb4b1c38f
commit
4b25cc38d9
1 changed files with 8 additions and 1 deletions
|
|
@ -155,7 +155,14 @@ Content::Content(
|
|||
drawGroups(std::move(drawGroups))
|
||||
{}
|
||||
|
||||
Content::~Content() {}
|
||||
Content::~Content() {
|
||||
for (auto& entry : blockDefs) {
|
||||
delete entry.second;
|
||||
}
|
||||
for (auto& entry : itemDefs) {
|
||||
delete entry.second;
|
||||
}
|
||||
}
|
||||
|
||||
Block* Content::findBlock(std::string id) const {
|
||||
auto found = blockDefs.find(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue