diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-06-14 22:11:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-06-14 22:11:23 +0300 |
commit | f59295860b3cb8ceacceb8bb4adc8667afdf99e5 (patch) | |
tree | 217d7cf370e245cbae0082d7e29eb1ab0ae1f954 | |
parent | 95979b8d31a76d07d134f6c9a9b93df884c1e519 (diff) | |
download | hercules-f59295860b3cb8ceacceb8bb4adc8667afdf99e5.tar.gz hercules-f59295860b3cb8ceacceb8bb4adc8667afdf99e5.tar.bz2 hercules-f59295860b3cb8ceacceb8bb4adc8667afdf99e5.tar.xz hercules-f59295860b3cb8ceacceb8bb4adc8667afdf99e5.zip |
quick warning fix.
-rw-r--r-- | src/map/clif.c | 4 |
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; |