diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-25 10:05:19 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-25 10:05:19 +1000 |
commit | 929c75c3641aa0a3b31aba39fa0612c88d19289a (patch) | |
tree | 1cb7e549bebcf199b447c4976c968c1b7c40736c /source/base | |
parent | a81490c35ca93174265f18d98a542d383a11bdfa (diff) |
fix macOS compilation
dang
Diffstat (limited to 'source/base')
-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 18435e9..7475a04 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -1158,8 +1158,8 @@ 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&) { - if (auto error = entry.operation.template ptr<ErrorImageOperation>()) + path.directives.forEach([&](Directives::Entry const& entry, Directives const&) { + if (auto error = entry.operation.ptr<ErrorImageOperation>()) if (auto string = error->cause.ptr<std::string>()) throw DirectivesException::format("ImageOperation parse error: {}", *string); else |