From 87a77163de2c0edc3caf6f2238be26f758f391ee Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 17 Nov 2023 02:07:57 +0100 Subject: [PATCH] Probable typo --- game/scripts/interface/inventory.rpy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/scripts/interface/inventory.rpy b/game/scripts/interface/inventory.rpy index c6d0db0a..559ca6f8 100644 --- a/game/scripts/interface/inventory.rpy +++ b/game/scripts/interface/inventory.rpy @@ -8,9 +8,9 @@ init python: if sortby == "z-A": item.sort(key=lambda x: natsort_key(x.name), reverse=True) - elif current_sorting == "Available": + elif sortby == "Available": item.sort(key=lambda x: x.owned is True, reverse=True) - elif current_sorting == "Unavailable": + elif sortby == "Unavailable": item.sort(key=lambda x: x.owned is False) return item