summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index a34805997..e1662fd71 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1846,6 +1846,13 @@ struct map_session_data** map_getallusers(int *users) {
return all_sd;
}
+void map_foreachpc(int (*func)(DBKey,void*,va_list),...) {
+ va_list ap;
+ va_start(ap,func);
+ pc_db->foreach(pc_db,func,ap);
+ va_end(ap);
+}
+
/*==========================================
* id_db?の全てにfuncを?行
*------------------------------------------