From f53dd3e3e3ae847c0871050464fc25f3f5863101 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Sat, 18 Dec 2010 11:03:16 +0000 Subject: * Fixed usage of literals for map name length in character list packet (since r14368). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14603 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/char/char.c | 2 +- src/char_sql/char.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 09e663ba2..06d895800 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,5 +1,7 @@ Date Added +2010/12/18 + * Fixed usage of literals for map name length in character list packet (since r14368). [Ai4rei] 2010/12/17 * Made the 'player not attached' script error also report the function it occured in, if available. [Ai4rei] * Fixed a crash, when script command 'doevent' is called without an attached player (bugreport:3973). [Ai4rei] diff --git a/src/char/char.c b/src/char/char.c index ad18658ba..c61a84d29 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1738,7 +1738,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) #endif #if (PACKETVER >= 20100720 && PACKETVER <= 20100727) || PACKETVER >= 20100803 mapindex_getmapname_ext(mapindex_id2name(p->last_point.map), (char*)WBUFP(buf,108)); - offset += 16; + offset += MAP_NAME_LENGTH_EXT; #endif return 106+offset; } diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 95e4b3471..d33ba46bd 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -1602,7 +1602,7 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p) #endif #if (PACKETVER >= 20100720 && PACKETVER <= 20100727) || PACKETVER >= 20100803 mapindex_getmapname_ext(mapindex_id2name(p->last_point.map), (char*)WBUFP(buf,108)); - offset += 16; + offset += MAP_NAME_LENGTH_EXT; #endif return 106+offset; } -- cgit v1.2.3-60-g2f50