summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 31cb30078..fb869104a 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -20534,7 +20534,6 @@ void clif_parse_open_ui_request(int fd, struct map_session_data *sd)
void clif_open_ui(struct map_session_data *sd, enum cz_ui_types uiType)
{
#if PACKETVER >= 20150128
- int claimed = 0;
struct PACKET_ZC_OPEN_UI p;
nullpo_retv(sd);
@@ -20548,7 +20547,9 @@ void clif_open_ui(struct map_session_data *sd, enum cz_ui_types uiType)
#endif
break;
case CZ_ATTENDANCE_UI:
+ {
#if PACKETVER_RE_NUM >= 20180307 || PACKETVER_MAIN_NUM >= 20180404 || PACKETVER_ZERO_NUM >= 20180411
+ int claimed = 0;
if (clif->attendance_timediff(sd) != true)
++claimed;
else if (sd->status.attendance_count >= VECTOR_LENGTH(clif->attendance_data))
@@ -20560,6 +20561,7 @@ void clif_open_ui(struct map_session_data *sd, enum cz_ui_types uiType)
return;
#endif
break;
+ }
default:
ShowWarning("clif_open_ui: Requested UI (%u) is not implemented yet.\n", uiType);
return;