summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-02-11 02:00:58 +0100
committerGitHub <noreply@github.com>2019-02-11 02:00:58 +0100
commit2d8a44b753832610d23678629127369f5db576a3 (patch)
tree258e78c458642cc017837f674b0d23255ac49bf4 /src/map/pc.c
parent68126f7d762e001b1a34cfe5e0a340db9c7d9da8 (diff)
parentdbaa9ac111496fdfde9948d5cb15a0b052843b3f (diff)
downloadhercules-2d8a44b753832610d23678629127369f5db576a3.tar.gz
hercules-2d8a44b753832610d23678629127369f5db576a3.tar.bz2
hercules-2d8a44b753832610d23678629127369f5db576a3.tar.xz
hercules-2d8a44b753832610d23678629127369f5db576a3.zip
Merge pull request #2364 from 4144/shortfixes
Change different variables types short to int
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5410ae96a..ea18715bb 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6147,7 +6147,7 @@ static int pc_checkequip(struct map_session_data *sd, int pos)
* Convert's from the client's lame Job ID system
* to the map server's 'makes sense' system. [Skotlex]
*------------------------------------------*/
-static int pc_jobid2mapid(int16 class)
+static int pc_jobid2mapid(int class)
{
switch (class) {
//Novice And 1-1 Jobs
@@ -6289,9 +6289,9 @@ static int pc_jobid2mapid(int16 class)
}
//Reverts the map-style class id to the client-style one.
-static int pc_mapid2jobid(uint16 job, int sex)
+static int pc_mapid2jobid(unsigned int class, int sex)
{
- switch (job) {
+ switch (class) {
//Novice And 1-1 Jobs
case MAPID_NOVICE: return JOB_NOVICE;
case MAPID_SWORDMAN: return JOB_SWORDMAN;