diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-20 10:47:25 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-20 10:47:25 +0000 |
commit | 37a2acc73fd02ebfda500a08e1c0a520504e4303 (patch) | |
tree | 22b35599608fcb076a0c7c4da7ad68c3d7826229 /src/map | |
parent | 36620704a17ff37296a6427f97832ad3d1f391d6 (diff) | |
download | hercules-37a2acc73fd02ebfda500a08e1c0a520504e4303.tar.gz hercules-37a2acc73fd02ebfda500a08e1c0a520504e4303.tar.bz2 hercules-37a2acc73fd02ebfda500a08e1c0a520504e4303.tar.xz hercules-37a2acc73fd02ebfda500a08e1c0a520504e4303.zip |
Fixed a signed/unsigned integer glitch in r11520 messing up random lvl1 Teleport.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11525 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 54812fd05..82f7aaa6f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4570,6 +4570,7 @@ void clif_skill_warppoint(struct map_session_data* sd, short skill_num, short sk WFIFOW(fd,2) = skill_num; memset(WFIFOP(fd,4), 0x00, 4*MAP_NAME_LENGTH_EXT); if (map1 == (unsigned short)-1) strcpy((char*)WFIFOP(fd,4), "Random"); + else // normal map name if (map1 > 0) mapindex_getmapname_ext(mapindex_id2name(map1), (char*)WFIFOP(fd,4)); if (map2 > 0) mapindex_getmapname_ext(mapindex_id2name(map2), (char*)WFIFOP(fd,20)); if (map3 > 0) mapindex_getmapname_ext(mapindex_id2name(map3), (char*)WFIFOP(fd,36)); |