summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2020-05-28 08:16:39 +0800
committerJesusaves <cpntb1@ymail.com>2021-02-15 16:39:32 -0300
commit8df906dae741f28f7ce88ef29d2937446a52ddc6 (patch)
treeb4864cadf7f50f9d0c24feca2b9f717884e0e817
parentb81fb99a8367ed18233116d35f6c9792134d462e (diff)
downloadhercules-8df906dae741f28f7ce88ef29d2937446a52ddc6.tar.gz
hercules-8df906dae741f28f7ce88ef29d2937446a52ddc6.tar.bz2
hercules-8df906dae741f28f7ce88ef29d2937446a52ddc6.tar.xz
hercules-8df906dae741f28f7ce88ef29d2937446a52ddc6.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 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.
}