summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-12-10 20:42:55 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-12-10 20:42:55 +0530
commitbb3afb0340c2046192c6e601b3ea450b68d41d3b (patch)
tree906719f2753db52cb00f8b7da0ec53b61bc6f650 /src
parent5829747a48294da0cd3af4a60ab6aedc471b07a3 (diff)
downloadhercules-bb3afb0340c2046192c6e601b3ea450b68d41d3b.tar.gz
hercules-bb3afb0340c2046192c6e601b3ea450b68d41d3b.tar.bz2
hercules-bb3afb0340c2046192c6e601b3ea450b68d41d3b.tar.xz
hercules-bb3afb0340c2046192c6e601b3ea450b68d41d3b.zip
Fix SPTable going low for MAX_LEVEL
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);
}
}