From 5622427d79aa5ab3c00a2d56337e87e0264fc269 Mon Sep 17 00:00:00 2001 From: J-rg <4042863+J-rg@users.noreply.github.com> Date: Wed, 10 Jan 2024 21:00:20 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20ArrayController=E2=80=99s=20fetch=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #4965 Regression from fce5ce1 --- OpenEmu/ArrayController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenEmu/ArrayController.swift b/OpenEmu/ArrayController.swift index 62ea7a7483..361498fa91 100644 --- a/OpenEmu/ArrayController.swift +++ b/OpenEmu/ArrayController.swift @@ -35,7 +35,7 @@ class ArrayController: NSArrayController { req.sortDescriptors = fetchSortDescriptors } - req.fetchLimit = min(0, limit) + req.fetchLimit = max(0, limit) return try super.fetch(with: req, merge: merge) }