summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c2
-rw-r--r--src/map/pc.c4
2 files changed, 3 insertions, 3 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;
diff --git a/src/map/pc.c b/src/map/pc.c
index aab6e406b..896a905fb 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -997,8 +997,8 @@ int pc_calc_skilltree(struct map_session_data *sd)
c = pc_calc_skilltree_normalize_job(c, sd);
for(i=0;i<MAX_SKILL;i++){
- if(skill_get_inf2(i))
- continue;
+// if(skill_get_inf2(i) & 0x01)
+// continue;
if (sd->status.skill[i].flag != 13)
sd->status.skill[i].id=0;
if (sd->status.skill[i].flag && sd->status.skill[i].flag != 13){ // cardスキルなら、