summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-27 18:17:24 +0100
committerHaru <haru@dotalux.com>2016-01-06 15:14:49 +0100
commitb3c722ecf777aeeea6317755a6adfc0216b7a2bd (patch)
treec3692ea61faa21307265d7b3e4a09d38854a8d71 /src/map/itemdb.c
parentaa574e36fea903b9aea31ea6f52855498d9476a9 (diff)
downloadhercules-b3c722ecf777aeeea6317755a6adfc0216b7a2bd.tar.gz
hercules-b3c722ecf777aeeea6317755a6adfc0216b7a2bd.tar.bz2
hercules-b3c722ecf777aeeea6317755a6adfc0216b7a2bd.tar.xz
hercules-b3c722ecf777aeeea6317755a6adfc0216b7a2bd.zip
Replaced some explicit casts with BL_UCAST/BL_UCCAST
- Replaced the map-iterator related casts. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 2894463de..048efd636 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2123,7 +2123,7 @@ void itemdb_reload(void) {
// readjust itemdb pointer cache for each player
iter = mapit_geteachpc();
- for( sd = (struct map_session_data*)mapit->first(iter); mapit->exists(iter); sd = (struct map_session_data*)mapit->next(iter) ) {
+ for (sd = BL_UCAST(BL_PC, mapit->first(iter)); mapit->exists(iter); sd = BL_UCAST(BL_PC, mapit->next(iter))) {
memset(sd->item_delay, 0, sizeof(sd->item_delay)); // reset item delays
pc->setinventorydata(sd);
if( battle_config.item_check )