From 8df906dae741f28f7ce88ef29d2937446a52ddc6 Mon Sep 17 00:00:00 2001 From: Jedzkie Date: Thu, 28 May 2020 08:16:39 +0800 Subject: Fix an issue regarding using items when the storage is open. --- 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 a8ff661e8..b34c927a2 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5156,7 +5156,7 @@ static int pc_useitem(struct map_session_data *sd, int n) return 0; } - if (battle_config.storage_use_item == 1 && sd->state.storage_flag != STORAGE_FLAG_CLOSED) { + if (battle_config.storage_use_item == 0 && sd->state.storage_flag != STORAGE_FLAG_CLOSED) { clif->messagecolor_self(sd->fd, COLOR_RED, msg_sd(sd, 1475)); return 0; // You cannot use this item while storage is open. } -- cgit v1.2.3-60-g2f50