diff options
author | Haru <haru@dotalux.com> | 2017-10-30 01:59:04 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-11-05 18:30:44 +0100 |
commit | 09d5c20572424e7a92dff5cf560001278c6ffaa0 (patch) | |
tree | e9a1f3347e58b85f0cd6d9e39fbf986e1b08b16b /src/map/script.c | |
parent | 581f8c7393757ea70c4aaa64f6e20b57f74a32ae (diff) | |
download | hercules-09d5c20572424e7a92dff5cf560001278c6ffaa0.tar.gz hercules-09d5c20572424e7a92dff5cf560001278c6ffaa0.tar.bz2 hercules-09d5c20572424e7a92dff5cf560001278c6ffaa0.tar.xz hercules-09d5c20572424e7a92dff5cf560001278c6ffaa0.zip |
Reduce confusion between skill IDs and skill DB indexes (part 2)
Remove MAX_SKILL in favor of MAX_SKILL_DB, when referring to the
maximum skill DB index. This is opposed to MAX_SKILL_ID, the maximum
skill ID.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 5773457a7..f72b54a0d 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14590,7 +14590,7 @@ BUILDIN(getskilllist) int i,j=0; if (sd == NULL) return true; - for(i=0;i<MAX_SKILL;i++) { + for (i = 0; i < MAX_SKILL_DB; i++) { if(sd->status.skill[i].id > 0 && sd->status.skill[i].lv > 0) { pc->setreg(sd,reference_uid(script->add_str("@skilllist_id"), j),sd->status.skill[i].id); pc->setreg(sd,reference_uid(script->add_str("@skilllist_lv"), j),sd->status.skill[i].lv); |