summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2020-05-28 08:16:39 +0800
committerJedzkie <jedzkie13@rocketmail.com>2020-05-28 08:16:39 +0800
commitab034b0ec31188c2e977a07a596504a0b971b7e6 (patch)
tree898e8063c0f226bc735fc282d1dbe57b43e03f15
parentec0584ac41434766e528b25730812da22ff31fc5 (diff)
downloadhercules-ab034b0ec31188c2e977a07a596504a0b971b7e6.tar.gz
hercules-ab034b0ec31188c2e977a07a596504a0b971b7e6.tar.bz2
hercules-ab034b0ec31188c2e977a07a596504a0b971b7e6.tar.xz
hercules-ab034b0ec31188c2e977a07a596504a0b971b7e6.zip
Fix an issue regarding using items when the storage is open.
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
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.
}