summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 982adea..489290a 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7692,7 +7692,7 @@ pc_invisibility(struct map_session_data *sd, int enabled)
clif_clearchar_area(&sd->bl, 3);
sd->status.option |= OPTION_INVISIBILITY;
clif_status_change(&sd->bl, CLIF_OPTION_SC_INVISIBILITY, 1);
- } else {
+ } else if (!enabled) {
sd->status.option &= ~OPTION_INVISIBILITY;
clif_status_change(&sd->bl, CLIF_OPTION_SC_INVISIBILITY, 0);
pc_setpos(sd, map[sd->bl.m].name, sd->bl.x, sd->bl.y, 3);