Skip to content

Commit

Permalink
Merge pull request #3019 from 4144/moveskillsunlock
Browse files Browse the repository at this point in the history
Move map unlock from skill_castend_nodamage_id_unknown to caller
  • Loading branch information
4144 committed Jul 19, 2021
2 parents ed16f78 + 590368c commit a65eb3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -11331,8 +11331,10 @@ static int skill_castend_nodamage_id(struct block_list *src, struct block_list *
}
break;
default:
if (skill->castend_nodamage_id_unknown(src, bl, &skill_id, &skill_lv, &tick, &flag))
if (skill->castend_nodamage_id_unknown(src, bl, &skill_id, &skill_lv, &tick, &flag)) {
map->freeblock_unlock();
return 1;
}
break;
}
PRAGMA_GCC46(GCC diagnostic pop)
Expand Down Expand Up @@ -11385,7 +11387,6 @@ static bool skill_castend_nodamage_id_unknown(struct block_list *src, struct blo
nullpo_retr(true, skill_lv);
ShowWarning("skill_castend_nodamage_id: Unknown skill used:%d\n", *skill_id);
clif->skill_nodamage(src, bl, *skill_id, *skill_lv, 1);
map->freeblock_unlock();
return true;
}

Expand Down

0 comments on commit a65eb3e

Please sign in to comment.