From 7c324a25b81fd0ae57a482b15343916fc3f931e2 Mon Sep 17 00:00:00 2001 From: skyleo Date: Sat, 13 Jan 2024 16:46:21 +0100 Subject: [PATCH] Fix expandinventory not allowing to return to minimal inventory size --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/pc.c b/src/map/pc.c index 975a9e719f1..986f9078121 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -12565,7 +12565,7 @@ static bool pc_expandInventory(struct map_session_data *sd, int adjustSize) { nullpo_retr(false, sd); const int invSize = sd->status.inventorySize; - if (adjustSize > MAX_INVENTORY || invSize + adjustSize <= FIXED_INVENTORY_SIZE || invSize + adjustSize > MAX_INVENTORY) { + if (adjustSize > MAX_INVENTORY || invSize + adjustSize < FIXED_INVENTORY_SIZE || invSize + adjustSize > MAX_INVENTORY) { clif->inventoryExpandResult(sd, EXPAND_INVENTORY_RESULT_MAX_SIZE); return false; }