summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9062e7227..699e7342b 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -12296,7 +12296,7 @@ void status_read_job_db_sub(int idx, const char *name, config_setting_t *jdb)
avg_increment = 1;
}
for ( ; i <= pc->max_level[idx][0]; i++) {
- status->dbs->SP_table[idx][i] = min(avg_increment * i, battle_config.max_sp);
+ status->dbs->SP_table[idx][i] = min(base + avg_increment * i, battle_config.max_sp);
}
}
}
@@ -12357,7 +12357,7 @@ void status_read_job_db_sub(int idx, const char *name, config_setting_t *jdb)
} else {
avg_increment = 1;
}
- for ( ; level <= pc->max_level[idx][0]; level++ ) {
+ for (++level; level <= pc->max_level[idx][0]; level++ ) {
status->dbs->SP_table[idx][level] = min(base + avg_increment * level, battle_config.max_sp);
}
}