diff --git a/loader/src/platform/mac/util.mm b/loader/src/platform/mac/util.mm index c15a30bb..e1cd8805 100644 --- a/loader/src/platform/mac/util.mm +++ b/loader/src/platform/mac/util.mm @@ -77,7 +77,7 @@ void utils::web::openLinkInBrowser(std::string const& url) { NSOpenPanel* panel = [NSOpenPanel openPanel]; // allowed files - NSMutableArray* allowed; + NSMutableArray* allowed = [NSMutableArray array]; for (auto& f : options.filters) { for (auto& i : f.files) {