summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2013-12-18 07:14:58 -0800
committershennetsind <shennetsind@users.noreply.github.com>2013-12-18 07:14:58 -0800
commite3f8af3a54c506f1cb61f3a1ade2d842a69ddfb7 (patch)
treecbc83b486c9ddaeaa9bcda1c39f03337d6b2dfc2 /src
parentfbf96e6eaed6220fd7aba0594a32396bab1da70b (diff)
parent6a3008f5342072ff38ddc9e58c882deebef13303 (diff)
downloadhercules-e3f8af3a54c506f1cb61f3a1ade2d842a69ddfb7.tar.gz
hercules-e3f8af3a54c506f1cb61f3a1ade2d842a69ddfb7.tar.bz2
hercules-e3f8af3a54c506f1cb61f3a1ade2d842a69ddfb7.tar.xz
hercules-e3f8af3a54c506f1cb61f3a1ade2d842a69ddfb7.zip
Merge pull request #236 from missxantara/master
Item database bug fixes.
Diffstat (limited to 'src')
-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 9a0760d61..fc1d56b6d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4183,6 +4183,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) )