From ab034b0ec31188c2e977a07a596504a0b971b7e6 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(-) (limited to 'src') diff --git a/src/map/pc.c b/src/map/pc.c index 5faadf76a..29c4c712e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5171,7 +5171,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-70-g09d2