summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 2d1436cfe..f486db422 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -7139,7 +7139,7 @@ atcommand_skilltree(const int fd, struct map_session_data* sd,
tbl, pc_checkskill(pl_sd, 1));
clif_displaymessage(fd, output);
- for (j = 0; j < MAX_SKILL; j++) {
+ for (j = 0; skill_tree[s][c][j].id != 0; j++) {
if (skill_tree[s][c][j].id == skillnum) {
skillidx = j;
break;