Skip to content

Commit

Permalink
VOXELCOLLECTION: use local variable of archive
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Jan 9, 2025
1 parent 8489137 commit e6963e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/voxelcollection/CollectionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void CollectionManager::loadThumbnail(const VoxelFile &voxelFile) {
}
const core::String &targetImageFile = voxelFile.targetFile() + ".png";
io::ArchivePtr archive = _archive;
if (_archive->exists(targetImageFile)) {
if (archive->exists(targetImageFile)) {
_futures.emplace_back(app::async([this, voxelFile, targetImageFile, archive]() {
if (_shouldQuit) {
return;
Expand All @@ -196,7 +196,7 @@ void CollectionManager::loadThumbnail(const VoxelFile &voxelFile) {
if (_shouldQuit) {
return;
}
http::HttpCacheStream stream(_archive, targetImageFile, voxelFile.thumbnailUrl);
http::HttpCacheStream stream(archive, targetImageFile, voxelFile.thumbnailUrl);
this->_imageQueue.push(image::loadImage(voxelFile.name, stream));
}));
} else {
Expand Down

0 comments on commit e6963e9

Please sign in to comment.