From dcdb55d68af1d4835a4607d74783e0513699312c Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 14 Jan 2012 07:38:32 +0000 Subject: Fixed ancient multi-map-server bug where gmlevel was lost during changing map-servers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15444 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/char.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/char_sql') diff --git a/src/char_sql/char.c b/src/char_sql/char.c index a188613a2..d5cc2afad 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -2726,7 +2726,7 @@ int parse_frommap(int fd) break; case 0x2b05: // request "change map server" - if (RFIFOREST(fd) < 35) + if (RFIFOREST(fd) < 39) return 0; { int map_id, map_fd = -1; @@ -2764,8 +2764,9 @@ int parse_frommap(int fd) node->login_id1 = RFIFOL(fd,6); node->login_id2 = RFIFOL(fd,10); node->sex = RFIFOB(fd,30); - node->expiration_time = 0; // FIXME + node->expiration_time = 0; // FIXME (this thing isn't really supported we could as well purge it instead of fixing) node->ip = ntohl(RFIFOL(fd,31)); + node->gmlevel = RFIFOL(fd,35); idb_put(auth_db, RFIFOL(fd,2), node); data = (struct online_char_data*)idb_ensure(online_char_db, RFIFOL(fd,2), create_online_char_data); -- cgit v1.2.3-70-g09d2