summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-15 03:11:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-15 03:11:25 +0300
commit6a006eed1a604b986d62a4ac75bfe5b3b8fc0c16 (patch)
tree419c4d6c4e0ae18dde060d13b4f4957b516d0201
parent38c20e9b5992fff9239fb17ee8cd8cc262d2d439 (diff)
downloadevol-hercules-6a006eed1a604b986d62a4ac75bfe5b3b8fc0c16.tar.gz
evol-hercules-6a006eed1a604b986d62a4ac75bfe5b3b8fc0c16.tar.bz2
evol-hercules-6a006eed1a604b986d62a4ac75bfe5b3b8fc0c16.tar.xz
evol-hercules-6a006eed1a604b986d62a4ac75bfe5b3b8fc0c16.zip
Force send 0 on unused card slots
-rw-r--r--src/emap/send.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index da321fb..36e05e9 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -118,6 +118,10 @@ void send_changelook(struct map_session_data* sd, struct map_session_data* sd2,
//ShowWarning("card %d\n", data->nameid);
WFIFOW (fd, 11 + i * 2) = data->nameid;
}
+ else
+ {
+ WFIFOW (fd, 11 + i * 2) = 0;
+ }
}
for (i = data->slot; i < MAX_SLOTS; i ++)
WFIFOW (fd, 11 + i * 2) = 0;
@@ -389,6 +393,10 @@ void send_changelook2(struct map_session_data* sd, struct block_list *bl, int id
//ShowWarning("card %d\n", data->nameid);
WBUFW(buf, 11 + i * 2) = data->nameid;
}
+ else
+ {
+ WBUFW(buf, 11 + i * 2) = 0;
+ }
}
for (i = data->slot; i < MAX_SLOTS; i ++)
WBUFW(buf, 11 + i * 2) = 0;