summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorXantara <missxantara@gmail.com>2013-12-12 00:45:52 -0700
committerXantara <missxantara@gmail.com>2013-12-12 00:45:52 -0700
commit6a3008f5342072ff38ddc9e58c882deebef13303 (patch)
treeb23cedd4940125caf546002f8860f08fd77b96ea /src/map/pc.c
parent0fd5a422b47367418e8ecea7ffa77872524dc01e (diff)
downloadhercules-6a3008f5342072ff38ddc9e58c882deebef13303.tar.gz
hercules-6a3008f5342072ff38ddc9e58c882deebef13303.tar.bz2
hercules-6a3008f5342072ff38ddc9e58c882deebef13303.tar.xz
hercules-6a3008f5342072ff38ddc9e58c882deebef13303.zip
Fix core bug issue 7435: When the Storage is open
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ab5749eb1..43bdb5f82 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4216,6 +4216,11 @@ int pc_isUseitem(struct map_session_data *sd,int n)
return 0; // You cannot use this item while sitting.
}
+ if (sd->state.storage_flag && item->type != IT_CASH) {
+ clif->colormes(sd->fd, COLOR_RED, msg_txt(1475));
+ return 0; // You cannot use this item while storage is open.
+ }
+
switch( nameid ) { // TODO: Is there no better way to handle this, other than hardcoding item IDs?
case ITEMID_ANODYNE:
if( map_flag_gvg2(sd->bl.m) )