Ver código fonte

- Fixed @skilltree printing out Unknown job for most targets used.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7056 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 anos atrás
pai
commit
668bd449ac
2 arquivos alterados com 3 adições e 0 exclusões
  1. 2 0
      Changelog-Trunk.txt
  2. 1 0
      src/map/atcommand.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/06/08
+	* Fixed @skilltree printing out Unknown job for most targets used.
+	  [Skotlex]
 	* Cleaned clif_pvpset to not send the packet to nearby characters when the
 	  source is GM-hidden. May help fix the crash on PvP with gm-hidden
 	  characters. [Skotlex]

+ 1 - 0
src/map/atcommand.c

@@ -7319,6 +7319,7 @@ atcommand_skilltree(const int fd, struct map_session_data* sd,
 		return -1;
 
 	c = pc_calc_skilltree_normalize_job(pl_sd);
+	c = pc_mapid2jobid(c, pl_sd->status.sex);
 
 	tbl = job_name(c);