summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-06 23:17:38 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-06 23:19:18 +0300
commit2ed4b42804b6373fd5256185e2072bb5b0c74968 (patch)
tree606be464c24bee778db0cde50b2aa19eb0a84257
parent0316c4e40b05f03e2dadc2f49c3810d3eb97d2b2 (diff)
downloadhercules-2ed4b42804b6373fd5256185e2072bb5b0c74968.tar.gz
hercules-2ed4b42804b6373fd5256185e2072bb5b0c74968.tar.bz2
hercules-2ed4b42804b6373fd5256185e2072bb5b0c74968.tar.xz
hercules-2ed4b42804b6373fd5256185e2072bb5b0c74968.zip
Fix player name packet (Fixes #2459)
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 462991510..89d907fd9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9271,11 +9271,11 @@ static void clif_pcname_ack(int fd, struct block_list *bl)
int ps = -1;
if (ssd->fakename[0] != '\0' && ssd->disguise != -1) {
- packet.packet_id = HEADER_ZC_ACK_REQNAMEALL;
- len = sizeof(struct PACKET_ZC_ACK_REQNAMEALL);
- } else {
packet.packet_id = reqName;
len = sizeof(struct packet_reqname_ack);
+ } else {
+ packet.packet_id = HEADER_ZC_ACK_REQNAMEALL;
+ len = sizeof(struct PACKET_ZC_ACK_REQNAMEALL);
}
//Requesting your own "shadow" name. [Skotlex]