diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index 18435e9..7475a04 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -1158,8 +1158,8 @@ shared_ptr Assets::loadImage(AssetPath const& path) const { return unlockDuring([&]() { auto newData = make_shared(); Image newImage = *source->image; - path.directives.forEach([&](auto const& entry, Directives const&) { - if (auto error = entry.operation.template ptr()) + path.directives.forEach([&](Directives::Entry const& entry, Directives const&) { + if (auto error = entry.operation.ptr()) if (auto string = error->cause.ptr()) throw DirectivesException::format("ImageOperation parse error: {}", *string); else