summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-16 03:28:42 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-16 03:28:42 +0000
commit1538897bcc4408788a42216bd9151943c8fc67f9 (patch)
tree188dc80216836f11bf4d96e0d1801cc90e84ceab /src/map/charcommand.c
parenteb14b67a9e71407702d69498b88eff1b6ef85c6c (diff)
downloadhercules-1538897bcc4408788a42216bd9151943c8fc67f9.tar.gz
hercules-1538897bcc4408788a42216bd9151943c8fc67f9.tar.bz2
hercules-1538897bcc4408788a42216bd9151943c8fc67f9.tar.xz
hercules-1538897bcc4408788a42216bd9151943c8fc67f9.zip
Fix compile errors
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@578 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index d792d337a..f38914553 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -289,6 +289,7 @@ int charcommand_jobchange(
}
if ((pl_sd = map_nick2sd(character)) != NULL) {
+ int j;
if (pc_isGM(sd) >= pc_isGM(pl_sd)) { // you can change job only to lower or same level
if ((job >= 0 && job < MAX_PC_CLASS)) {
@@ -319,7 +320,6 @@ int charcommand_jobchange(
job = 4015;
}
}
- int j;
for (j=0; j < MAX_INVENTORY; j++) {
if(pl_sd->status.inventory[j].nameid>0 && pl_sd->status.inventory[j].equip!=0)
pc_unequipitem(pl_sd, j, 3);