diff options
Diffstat (limited to 'source/base/StarAssets.cpp')
-rw-r--r-- | source/base/StarAssets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index 135945c..2c3d04b 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -858,7 +858,7 @@ shared_ptr<Assets::AssetData> Assets::loadImage(AssetPath const& path) const { for (auto& directives : path.directives.list()) directives.loadOperations(); - path.directives.forEach([&](auto const& entry, Directives const& directives) { + path.directives.forEach([&](auto const& entry, Directives const&) { addImageOperationReferences(entry.operation, referencePaths); }); // TODO: This can definitely be better, was changed quickly to support the new Directives. @@ -875,7 +875,7 @@ shared_ptr<Assets::AssetData> Assets::loadImage(AssetPath const& path) const { return unlockDuring([&]() { auto newData = make_shared<ImageData>(); Image newImage = *source->image; - path.directives.forEach([&](auto const& entry, Directives const& directives) { + path.directives.forEach([&](auto const& entry, Directives const&) { if (auto error = entry.operation.template ptr<ErrorImageOperation>()) std::rethrow_exception(error->exception); else |