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