summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-01-09 22:12:22 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-01-09 22:12:22 +0800
commit763102b807239809d318add3fae5629bfd50a78b (patch)
tree38ec21207a9dd9f6531de4460a646dfcb53be5d7 /src
parentb22f68bbef4fb348c5a22d9c7674bba532d2c116 (diff)
downloadhercules-763102b807239809d318add3fae5629bfd50a78b.tar.gz
hercules-763102b807239809d318add3fae5629bfd50a78b.tar.bz2
hercules-763102b807239809d318add3fae5629bfd50a78b.tar.xz
hercules-763102b807239809d318add3fae5629bfd50a78b.zip
Fixed Bug#7826
-http://hercules.ws/board/tracker/issue-7826-card-compound/?gopid=21081#entry21081 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index fc5448472..2a2151eb0 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5947,9 +5947,15 @@ void clif_use_card(struct map_session_data *sd,int idx)
if( j == sd->inventory_data[i]->slot ) // No room
continue;
+ if( sd->status.inventory[i].equip > 0 ) // Do not check items that are already equipped
+ continue;
+
WFIFOW(fd,4+c*2)=i+2;
c++;
}
+
+ if( !c ) return; // no item is available for card insertion
+
WFIFOW(fd,2)=4+c*2;
WFIFOSET(fd,WFIFOW(fd,2));
}