diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-14 07:38:32 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-14 07:38:32 +0000 |
commit | dcdb55d68af1d4835a4607d74783e0513699312c (patch) | |
tree | 7ec9e2b686ae1427221600e3d66c349a85096def /src/char_sql/char.c | |
parent | c886be29ee7383b18e3a2406c05e85df4d6960a6 (diff) | |
download | hercules-dcdb55d68af1d4835a4607d74783e0513699312c.tar.gz hercules-dcdb55d68af1d4835a4607d74783e0513699312c.tar.bz2 hercules-dcdb55d68af1d4835a4607d74783e0513699312c.tar.xz hercules-dcdb55d68af1d4835a4607d74783e0513699312c.zip |
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
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r-- | src/char_sql/char.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |