fix macOS compilation

dang
This commit is contained in:
Kae 2024-04-25 10:05:19 +10:00
parent a81490c35c
commit 929c75c364

View File

@ -1158,8 +1158,8 @@ shared_ptr<Assets::AssetData> Assets::loadImage(AssetPath const& path) const {
return unlockDuring([&]() { return unlockDuring([&]() {
auto newData = make_shared<ImageData>(); auto newData = make_shared<ImageData>();
Image newImage = *source->image; Image newImage = *source->image;
path.directives.forEach([&](auto const& entry, Directives const&) { path.directives.forEach([&](Directives::Entry const& entry, Directives const&) {
if (auto error = entry.operation.template ptr<ErrorImageOperation>()) if (auto error = entry.operation.ptr<ErrorImageOperation>())
if (auto string = error->cause.ptr<std::string>()) if (auto string = error->cause.ptr<std::string>())
throw DirectivesException::format("ImageOperation parse error: {}", *string); throw DirectivesException::format("ImageOperation parse error: {}", *string);
else else