summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 08:54:54 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 08:54:54 +0000
commitc59ea57a893908f54d2960a1e18d2473a1bb8196 (patch)
treeffd267754c4bc8b70d559e9e416f326c82757ecb /src/map/map.h
parentdde2e2fa9619a504765b676caa3ac0b05b67cfbc (diff)
downloadhercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.tar.gz
hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.tar.bz2
hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.tar.xz
hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.zip
Simplified the BL_CAST macro (see topic:166795)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12072 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 266572680..e73d82c87 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -1362,8 +1362,8 @@ typedef struct skill_unit TBL_SKILL;
typedef struct pet_data TBL_PET;
typedef struct homun_data TBL_HOM;
-#define BL_CAST(type_, bl , dest) \
- (((bl) == NULL || (bl)->type != type_) ? ((dest) = NULL, 0) : ((dest) = (T ## type_ *)(bl), 1))
+#define BL_CAST(type_, bl) \
+ ( ((bl) == (struct block_list*)NULL || (bl)->type != (type_)) ? (T ## type_ *)NULL : (T ## type_ *)(bl) )
extern int lowest_gm_level;