summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarLaeda <KarLaeda@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-24 18:59:58 +0000
committerKarLaeda <KarLaeda@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-24 18:59:58 +0000
commit45c0e17a5c1040d2294e330c8eb28a9e1a13a0e1 (patch)
tree1ccd919acb654dd1cddb0315a63888a64c6ec413 /src
parent8990786d187a426ac165c5477cb4d2fbd137b93d (diff)
downloadhercules-45c0e17a5c1040d2294e330c8eb28a9e1a13a0e1.tar.gz
hercules-45c0e17a5c1040d2294e330c8eb28a9e1a13a0e1.tar.bz2
hercules-45c0e17a5c1040d2294e330c8eb28a9e1a13a0e1.tar.xz
hercules-45c0e17a5c1040d2294e330c8eb28a9e1a13a0e1.zip
Small fir for changeset 9539
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9568 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c1
-rw-r--r--src/char_sql/char.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index b6dc3bdba..ce84dd0aa 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1686,6 +1686,7 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
sd->found_char[i] = -1;
#if PACKETVER > 7
+ //Updated packet structure with rename-button included. Credits to Sara-chan
WFIFOHEAD(fd, offset + found_num * 108);
memset(WFIFOP(fd,0), 0, offset + found_num * 108);
WFIFOW(fd,2) = offset + found_num * 108;
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 3ff9adb05..b64dc68e4 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -1706,16 +1706,17 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
for(i = found_num; i < 9; i++)
sd->found_char[i] = -1;
- WFIFOW(fd, 0) = 0x6b;
-
#if PACKETVER > 7
//Updated packet structure with rename-button included. Credits to Sara-chan
+ WFIFOHEAD(fd, offset + found_num * 108);
memset(WFIFOP(fd, 0), 0, offset + found_num * 108);
WFIFOW(fd, 2) = offset + found_num * 108;
#else
+ WFIFOHEAD(fd, offset + found_num * 106);
memset(WFIFOP(fd, 0), 0, offset + found_num * 106);
WFIFOW(fd, 2) = offset + found_num * 106;
#endif
+ WFIFOW(fd, 0) = 0x6b;
if (save_log)
ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id);