diff options
author | Haru <haru@dotalux.com> | 2016-07-02 18:59:30 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-07-02 18:59:30 +0200 |
commit | 657d772c70e07afc2188c200247f73f03879884d (patch) | |
tree | 8cc574e9b772a975027839762f48d752c3334d21 /src/map/clif.c | |
parent | 0b7498bd5c252094fd429b46be847dcd24066a2e (diff) | |
download | hercules-657d772c70e07afc2188c200247f73f03879884d.tar.gz hercules-657d772c70e07afc2188c200247f73f03879884d.tar.bz2 hercules-657d772c70e07afc2188c200247f73f03879884d.tar.xz hercules-657d772c70e07afc2188c200247f73f03879884d.zip |
Trivialities: indentation fixes
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index afd98aedb..8aa225878 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11566,10 +11566,10 @@ void clif_parse_OneClick_ItemIdentify(int fd, struct map_session_data *sd) int cmd = RFIFOW(fd,0); short idx = RFIFOW(fd, packet_db[cmd].pos[0]) - 2; int n; - + if (idx < 0 || idx >= MAX_INVENTORY || sd->inventory_data[idx] == NULL || sd->status.inventory[idx].nameid <= 0) return; - + if ((n = pc->have_magnifier(sd) ) != INDEX_NOT_FOUND && pc->delitem(sd, n, 1, 0, DELITEM_NORMAL, LOG_TYPE_CONSUME) == 0) skill->identify(sd, idx); |