summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-05-06 23:42:31 +0200
committerGitHub <noreply@github.com>2019-05-06 23:42:31 +0200
commit45a3cb0def45cbd0bfb6769e116da84edc686d79 (patch)
treefd43b075624328b3bbb3548fb2faca68e0cd0a50 /src/map
parente7d0f067d0a4cff9ec0693cf61225f06e93ef4f9 (diff)
parent2ed4b42804b6373fd5256185e2072bb5b0c74968 (diff)
downloadhercules-45a3cb0def45cbd0bfb6769e116da84edc686d79.tar.gz
hercules-45a3cb0def45cbd0bfb6769e116da84edc686d79.tar.bz2
hercules-45a3cb0def45cbd0bfb6769e116da84edc686d79.tar.xz
hercules-45a3cb0def45cbd0bfb6769e116da84edc686d79.zip
Merge pull request #2460 from 4144/fix2459
Fix player name packet (Fixes #2459)
Diffstat (limited to 'src/map')
-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 0aef5b8dc..1214106b7 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9270,11 +9270,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]