summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 19:53:58 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-05 19:53:58 +0000
commitf180cda1a2d7a0315508d9ff8f4c1f3196229207 (patch)
treebf866ccb0103863efe7acda8d4aaee9553e257bf /src/map/map.c
parent7126279da91474771e6540e25bf0f7b07efe2824 (diff)
downloadhercules-f180cda1a2d7a0315508d9ff8f4c1f3196229207.tar.gz
hercules-f180cda1a2d7a0315508d9ff8f4c1f3196229207.tar.bz2
hercules-f180cda1a2d7a0315508d9ff8f4c1f3196229207.tar.xz
hercules-f180cda1a2d7a0315508d9ff8f4c1f3196229207.zip
AMD64 fixes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1047 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/map.c b/src/map/map.c
index c0f3aa046..3a0b816c1 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -429,9 +429,9 @@ struct skill_unit *map_find_skill_unit_oncell(int m,int x,int y,int skill_id)
*------------------------------------------
*/
void map_foreachinarea(int (*func)(struct block_list*,va_list),int m,int x0,int y0,int x1,int y1,int type,...) {
+ va_list ap;
int bx,by;
struct block_list *bl=NULL;
- va_list ap=NULL;
int blockcount=bl_list_count,i,c;
if(m < 0)
@@ -494,7 +494,7 @@ void map_foreachinarea(int (*func)(struct block_list*,va_list),int m,int x0,int
void map_foreachinmovearea(int (*func)(struct block_list*,va_list),int m,int x0,int y0,int x1,int y1,int dx,int dy,int type,...) {
int bx,by;
struct block_list *bl=NULL;
- va_list ap=NULL;
+ va_list ap;
int blockcount=bl_list_count,i,c;
va_start(ap,type);
@@ -603,7 +603,7 @@ void map_foreachinmovearea(int (*func)(struct block_list*,va_list),int m,int x0,
void map_foreachincell(int (*func)(struct block_list*,va_list),int m,int x,int y,int type,...) {
int bx,by;
struct block_list *bl=NULL;
- va_list ap=NULL;
+ va_list ap;
int blockcount=bl_list_count,i,c;
va_start(ap,type);
@@ -734,7 +734,7 @@ int map_delobject(int id) {
void map_foreachobject(int (*func)(struct block_list*,va_list),int type,...) {
int i;
int blockcount=bl_list_count;
- va_list ap=NULL;
+ va_list ap;
va_start(ap,type);
@@ -1202,7 +1202,7 @@ struct block_list * map_id2bl(int id)
*------------------------------------------
*/
int map_foreachiddb(int (*func)(void*,void*,va_list),...) {
- va_list ap=NULL;
+ va_list ap;
va_start(ap,func);
numdb_foreach(id_db,func,ap);