diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.c | 2 | ||||
-rw-r--r-- | src/map/charcommand.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 353aae044..8db07f942 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2039,6 +2039,7 @@ int atcommand_jobchange( return 0; if ((job >= 0 && job < MAX_PC_CLASS)) { + int j; // fix pecopeco display if ((job != 13 && job != 21 && job != 4014 && job != 4022)) { @@ -2067,7 +2068,6 @@ int atcommand_jobchange( job = 4015; } } - int j; for (j=0; j < MAX_INVENTORY; j++) { if(sd->status.inventory[j].nameid>0 && sd->status.inventory[j].equip!=0) pc_unequipitem(sd, j, 3); 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); |