Fixed integer division by zero error when loading files
This commit is contained in:
parent
58fb02f449
commit
97d308268d
19 changed files with 97 additions and 30 deletions
|
|
@ -75,6 +75,11 @@ void DrawingProgramLayerFolder::save_file(cereal::PortableBinaryOutputArchive& a
|
|||
listItem.obj->save_file(a);
|
||||
}
|
||||
|
||||
void DrawingProgramLayerFolder::erase_invalid_components() {
|
||||
for(auto& listItem : *folderList)
|
||||
listItem.obj->erase_invalid_components();
|
||||
}
|
||||
|
||||
void DrawingProgramLayerFolder::get_used_resources(std::unordered_set<NetworkingObjects::NetObjID>& resourceSet) const {
|
||||
for(auto& listItem : *folderList)
|
||||
listItem.obj->get_used_resources(resourceSet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue