summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorEyesOfAHawk <blackoutro2006@gmail.com>2019-10-12 01:52:33 +1300
committerEyesOfAHawk <blackoutro2006@gmail.com>2019-10-12 01:52:33 +1300
commitb4e6f31a35bf513b8280ebc1d7a82cc3f9b19fbf (patch)
tree8c42dd8dce2c3af3852244a24ebb2c353f6834c5 /src/map/clif.c
parentd026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff)
downloadhercules-b4e6f31a35bf513b8280ebc1d7a82cc3f9b19fbf.tar.gz
hercules-b4e6f31a35bf513b8280ebc1d7a82cc3f9b19fbf.tar.bz2
hercules-b4e6f31a35bf513b8280ebc1d7a82cc3f9b19fbf.tar.xz
hercules-b4e6f31a35bf513b8280ebc1d7a82cc3f9b19fbf.zip
Fix issues with @fakename.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f6caa502e..b8c12e842 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9347,7 +9347,7 @@ static void clif_pcname_ack(int fd, struct block_list *bl)
const struct map_session_data *ssd = BL_UCCAST(BL_PC, bl);
- if (ssd->fakename[0] != '\0' && ssd->disguise != -1) {
+ if (ssd->fakename[0] != '\0') {
packet.packet_id = reqName;
len = sizeof(struct packet_reqname_ack);
} else {
@@ -9360,7 +9360,7 @@ static void clif_pcname_ack(int fd, struct block_list *bl)
packet.gid = -bl->id;
}
- if (ssd->fakename[0] != '\0' && ssd->disguise != -1) {
+ if (ssd->fakename[0] != '\0') {
memcpy(packet.name, ssd->fakename, NAME_LENGTH);
} else {
#if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO)