summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-14 14:01:42 -0300
committershennetsind <ind@henn.et>2014-03-14 14:01:42 -0300
commit7078cb3a0eb55d1cdc0c0f043381b0d177058092 (patch)
treed8c83a30e01e5ee8f6ddd9f8ab5b9301ca562dc3 /src/map
parent2cc2a97b574a9485394c6da315b38b9cf362c277 (diff)
downloadhercules-7078cb3a0eb55d1cdc0c0f043381b0d177058092.tar.gz
hercules-7078cb3a0eb55d1cdc0c0f043381b0d177058092.tar.bz2
hercules-7078cb3a0eb55d1cdc0c0f043381b0d177058092.tar.xz
hercules-7078cb3a0eb55d1cdc0c0f043381b0d177058092.zip
Fixed Bug 8081
disabling rental items with zones would cause such rental items to be deleted when the item_restricted_consumption_type setting was enabled, this has been fixed in this commit. Special Thanks to Tepoo. http://hercules.ws/board/tracker/issue-8081-map-zone-dbconf-item-dissabled-issues/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-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 41a722dfb..a231d7226 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4450,7 +4450,7 @@ int pc_useitem(struct map_session_data *sd,int n) {
for(i = 0; i < map->list[sd->bl.m].zone->disabled_items_count; i++) {
if( map->list[sd->bl.m].zone->disabled_items[i] == nameid ) {
clif->msg(sd, ITEM_CANT_USE_AREA); // This item cannot be used within this area
- if( battle_config.item_restricted_consumption_type ) {
+ if( battle_config.item_restricted_consumption_type && sd->status.inventory[n].expire_time == 0 ) {
clif->useitemack(sd,n,sd->status.inventory[n].amount-1,true);
pc->delitem(sd,n,1,1,0,LOG_TYPE_CONSUME);
}