summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c4
-rw-r--r--src/map/skill.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 3ce8e9040..a43f783b5 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1557,10 +1557,10 @@ int char_make_new_char_sql(struct char_session_data *sd, const char *name_, int
SQL->EscapeStringLen(inter->sql_handle, esc_name, name, strnlen(name, NAME_LENGTH));
flag = chr->check_char_name(name,esc_name);
- if( flag < 0 )
+ if (flag < 0)
return flag;
- switch(starting_job) {
+ switch (starting_job) {
case JOB_SUMMONER:
case JOB_NOVICE:
break;
diff --git a/src/map/skill.c b/src/map/skill.c
index b3a060de2..4c57fbc56 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9549,14 +9549,14 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
break;
case SU_HIDE:
- if (tsce) {
- clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
+ if (tsce != NULL) {
+ clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
status_change_end(bl, type, INVALID_TIMER);
map->freeblock_unlock();
return 0;
}
- clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
- sc_start(src,bl,type,100,skill_lv,skill->get_time(skill_id,skill_lv));
+ clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
+ sc_start(src, bl, type, 100, skill_lv, skill->get_time(skill_id, skill_lv));
break;
break;