diff options
Diffstat (limited to 'src/char/inter.c')
-rw-r--r-- | src/char/inter.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/char/inter.c b/src/char/inter.c index dbff1993f..c72c64108 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -421,11 +421,14 @@ int mapif_disconnectplayer(int fd, int account_id, int char_id, int reason) //-------------------------------------------------------- -// Existence check of WISP data -int check_ttl_wisdata_sub(DBKey key, void *data, va_list ap) +/** + * Existence check of WISP data + * @see DBApply + */ +int check_ttl_wisdata_sub(DBKey key, DBData *data, va_list ap) { unsigned long tick; - struct WisData *wd = (struct WisData *)data; + struct WisData *wd = db_data2ptr(data); tick = va_arg(ap, unsigned long); if (DIFF_TICK(tick, wd->tick) > WISDATA_TTL && wis_delnum < WISDELLIST_MAX) |